aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs b/src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs
new file mode 100644
index 00000000..7f1b7a2a
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs
@@ -0,0 +1,76 @@
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 MsiEmbeddedChainer = new IntermediateTupleDefinition(
10 TupleDefinitionType.MsiEmbeddedChainer,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerTupleFields.MsiEmbeddedChainer), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerTupleFields.Condition), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerTupleFields.CommandLine), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerTupleFields.Source), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerTupleFields.Type), IntermediateFieldType.Number),
18 },
19 typeof(MsiEmbeddedChainerTuple));
20 }
21}
22
23namespace WixToolset.Data.Tuples
24{
25 public enum MsiEmbeddedChainerTupleFields
26 {
27 MsiEmbeddedChainer,
28 Condition,
29 CommandLine,
30 Source,
31 Type,
32 }
33
34 public class MsiEmbeddedChainerTuple : IntermediateTuple
35 {
36 public MsiEmbeddedChainerTuple() : base(TupleDefinitions.MsiEmbeddedChainer, null, null)
37 {
38 }
39
40 public MsiEmbeddedChainerTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiEmbeddedChainer, sourceLineNumber, id)
41 {
42 }
43
44 public IntermediateField this[MsiEmbeddedChainerTupleFields index] => this.Fields[(int)index];
45
46 public string MsiEmbeddedChainer
47 {
48 get => (string)this.Fields[(int)MsiEmbeddedChainerTupleFields.MsiEmbeddedChainer]?.Value;
49 set => this.Set((int)MsiEmbeddedChainerTupleFields.MsiEmbeddedChainer, value);
50 }
51
52 public string Condition
53 {
54 get => (string)this.Fields[(int)MsiEmbeddedChainerTupleFields.Condition]?.Value;
55 set => this.Set((int)MsiEmbeddedChainerTupleFields.Condition, value);
56 }
57
58 public string CommandLine
59 {
60 get => (string)this.Fields[(int)MsiEmbeddedChainerTupleFields.CommandLine]?.Value;
61 set => this.Set((int)MsiEmbeddedChainerTupleFields.CommandLine, value);
62 }
63
64 public string Source
65 {
66 get => (string)this.Fields[(int)MsiEmbeddedChainerTupleFields.Source]?.Value;
67 set => this.Set((int)MsiEmbeddedChainerTupleFields.Source, value);
68 }
69
70 public int Type
71 {
72 get => (int)this.Fields[(int)MsiEmbeddedChainerTupleFields.Type]?.Value;
73 set => this.Set((int)MsiEmbeddedChainerTupleFields.Type, value);
74 }
75 }
76} \ No newline at end of file