aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs
new file mode 100644
index 00000000..4a4cd372
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs
@@ -0,0 +1,52 @@
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 WixBundleCatalog = new IntermediateTupleDefinition(
10 TupleDefinitionType.WixBundleCatalog,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixBundleCatalogTupleFields.WixBundleCatalog), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixBundleCatalogTupleFields.Payload_), IntermediateFieldType.String),
15 },
16 typeof(WixBundleCatalogTuple));
17 }
18}
19
20namespace WixToolset.Data.Tuples
21{
22 public enum WixBundleCatalogTupleFields
23 {
24 WixBundleCatalog,
25 Payload_,
26 }
27
28 public class WixBundleCatalogTuple : IntermediateTuple
29 {
30 public WixBundleCatalogTuple() : base(TupleDefinitions.WixBundleCatalog, null, null)
31 {
32 }
33
34 public WixBundleCatalogTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundleCatalog, sourceLineNumber, id)
35 {
36 }
37
38 public IntermediateField this[WixBundleCatalogTupleFields index] => this.Fields[(int)index];
39
40 public string WixBundleCatalog
41 {
42 get => (string)this.Fields[(int)WixBundleCatalogTupleFields.WixBundleCatalog]?.Value;
43 set => this.Set((int)WixBundleCatalogTupleFields.WixBundleCatalog, value);
44 }
45
46 public string Payload_
47 {
48 get => (string)this.Fields[(int)WixBundleCatalogTupleFields.Payload_]?.Value;
49 set => this.Set((int)WixBundleCatalogTupleFields.Payload_, value);
50 }
51 }
52} \ No newline at end of file