aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs214
1 files changed, 214 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs
new file mode 100644
index 00000000..d1c02387
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs
@@ -0,0 +1,214 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Tuples;
6
7 public static partial class TupleDefinitions
8 {
9 public static readonly IntermediateTupleDefinition WixBundlePayload = new IntermediateTupleDefinition(
10 TupleDefinitionType.WixBundlePayload,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.WixBundlePayload), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Name), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.SourceFile), IntermediateFieldType.Path),
16 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.DownloadUrl), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Compressed), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.UnresolvedSourceFile), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.DisplayName), IntermediateFieldType.String),
20 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Description), IntermediateFieldType.String),
21 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.EnableSignatureValidation), IntermediateFieldType.Bool),
22 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.FileSize), IntermediateFieldType.Number),
23 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Version), IntermediateFieldType.String),
24 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Hash), IntermediateFieldType.String),
25 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.PublicKey), IntermediateFieldType.String),
26 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Thumbprint), IntermediateFieldType.String),
27 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Catalog_), IntermediateFieldType.String),
28 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Container_), IntermediateFieldType.String),
29 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Package), IntermediateFieldType.String),
30 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.ContentFile), IntermediateFieldType.Bool),
31 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.EmbeddedId), IntermediateFieldType.String),
32 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.LayoutOnly), IntermediateFieldType.Number),
33 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Packaging), IntermediateFieldType.Number),
34 new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.ParentPackagePayload_), IntermediateFieldType.String),
35 },
36 typeof(WixBundlePayloadTuple));
37 }
38}
39
40namespace WixToolset.Data.Tuples
41{
42 using System;
43
44 public enum WixBundlePayloadTupleFields
45 {
46 WixBundlePayload,
47 Name,
48 SourceFile,
49 DownloadUrl,
50 Compressed,
51 UnresolvedSourceFile,
52 DisplayName,
53 Description,
54 EnableSignatureValidation,
55 FileSize,
56 Version,
57 Hash,
58 PublicKey,
59 Thumbprint,
60 Catalog_,
61 Container_,
62 Package,
63 ContentFile,
64 EmbeddedId,
65 LayoutOnly,
66 Packaging,
67 ParentPackagePayload_,
68 }
69
70 public class WixBundlePayloadTuple : IntermediateTuple
71 {
72 public WixBundlePayloadTuple() : base(TupleDefinitions.WixBundlePayload, null, null)
73 {
74 }
75
76 public WixBundlePayloadTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundlePayload, sourceLineNumber, id)
77 {
78 }
79
80 public IntermediateField this[WixBundlePayloadTupleFields index] => this.Fields[(int)index];
81
82 public string WixBundlePayload
83 {
84 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.WixBundlePayload]?.Value;
85 set => this.Set((int)WixBundlePayloadTupleFields.WixBundlePayload, value);
86 }
87
88 public string Name
89 {
90 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Name]?.Value;
91 set => this.Set((int)WixBundlePayloadTupleFields.Name, value);
92 }
93
94 public string SourceFile
95 {
96 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.SourceFile]?.Value;
97 set => this.Set((int)WixBundlePayloadTupleFields.SourceFile, value);
98 }
99
100 public string DownloadUrl
101 {
102 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DownloadUrl]?.Value;
103 set => this.Set((int)WixBundlePayloadTupleFields.DownloadUrl, value);
104 }
105
106 public YesNoDefaultType Compressed
107 {
108 get => Enum.TryParse((string)this.Fields[(int)WixBundlePayloadTupleFields.Compressed]?.Value, true, out YesNoDefaultType value) ? value : YesNoDefaultType.NotSet;
109 set => this.Set((int)WixBundlePayloadTupleFields.Compressed, value);
110 }
111
112 public string UnresolvedSourceFile
113 {
114 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.UnresolvedSourceFile]?.Value;
115 set => this.Set((int)WixBundlePayloadTupleFields.UnresolvedSourceFile, value);
116 }
117
118 public string DisplayName
119 {
120 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DisplayName]?.Value;
121 set => this.Set((int)WixBundlePayloadTupleFields.DisplayName, value);
122 }
123
124 public string Description
125 {
126 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Description]?.Value;
127 set => this.Set((int)WixBundlePayloadTupleFields.Description, value);
128 }
129
130 public bool EnableSignatureValidation
131 {
132 get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.EnableSignatureValidation]?.Value;
133 set => this.Set((int)WixBundlePayloadTupleFields.EnableSignatureValidation, value);
134 }
135
136 public int FileSize
137 {
138 get => (int)this.Fields[(int)WixBundlePayloadTupleFields.FileSize]?.Value;
139 set => this.Set((int)WixBundlePayloadTupleFields.FileSize, value);
140 }
141
142 public string Version
143 {
144 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Version]?.Value;
145 set => this.Set((int)WixBundlePayloadTupleFields.Version, value);
146 }
147
148 public string Hash
149 {
150 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Hash]?.Value;
151 set => this.Set((int)WixBundlePayloadTupleFields.Hash, value);
152 }
153
154 public string PublicKey
155 {
156 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.PublicKey]?.Value;
157 set => this.Set((int)WixBundlePayloadTupleFields.PublicKey, value);
158 }
159
160 public string Thumbprint
161 {
162 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Thumbprint]?.Value;
163 set => this.Set((int)WixBundlePayloadTupleFields.Thumbprint, value);
164 }
165
166 public string Catalog_
167 {
168 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Catalog_]?.Value;
169 set => this.Set((int)WixBundlePayloadTupleFields.Catalog_, value);
170 }
171
172 public string Container_
173 {
174 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Container_]?.Value;
175 set => this.Set((int)WixBundlePayloadTupleFields.Container_, value);
176 }
177
178 public string Package
179 {
180 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Package]?.Value;
181 set => this.Set((int)WixBundlePayloadTupleFields.Package, value);
182 }
183
184 public bool ContentFile
185 {
186 get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.ContentFile]?.Value;
187 set => this.Set((int)WixBundlePayloadTupleFields.ContentFile, value);
188 }
189
190 public string EmbeddedId
191 {
192 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.EmbeddedId]?.Value;
193 set => this.Set((int)WixBundlePayloadTupleFields.EmbeddedId, value);
194 }
195
196 public int LayoutOnly
197 {
198 get => (int)this.Fields[(int)WixBundlePayloadTupleFields.LayoutOnly]?.Value;
199 set => this.Set((int)WixBundlePayloadTupleFields.LayoutOnly, value);
200 }
201
202 public int Packaging
203 {
204 get => (int)this.Fields[(int)WixBundlePayloadTupleFields.Packaging]?.Value;
205 set => this.Set((int)WixBundlePayloadTupleFields.Packaging, value);
206 }
207
208 public string ParentPackagePayload_
209 {
210 get => (string)this.Fields[(int)WixBundlePayloadTupleFields.ParentPackagePayload_]?.Value;
211 set => this.Set((int)WixBundlePayloadTupleFields.ParentPackagePayload_, value);
212 }
213 }
214} \ No newline at end of file