aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs b/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs
index 491e9aa1..5151aa2b 100644
--- a/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs
+++ b/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs
@@ -10,7 +10,7 @@ namespace WixToolset.Data
10 TupleDefinitionType.WixRelatedBundle, 10 TupleDefinitionType.WixRelatedBundle,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(WixRelatedBundleTupleFields.Id), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(WixRelatedBundleTupleFields.BundleId), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixRelatedBundleTupleFields.Action), IntermediateFieldType.Number), 14 new IntermediateFieldDefinition(nameof(WixRelatedBundleTupleFields.Action), IntermediateFieldType.Number),
15 }, 15 },
16 typeof(WixRelatedBundleTuple)); 16 typeof(WixRelatedBundleTuple));
@@ -21,10 +21,18 @@ namespace WixToolset.Data.Tuples
21{ 21{
22 public enum WixRelatedBundleTupleFields 22 public enum WixRelatedBundleTupleFields
23 { 23 {
24 Id, 24 BundleId,
25 Action, 25 Action,
26 } 26 }
27 27
28 public enum RelatedBundleActionType
29 {
30 Detect,
31 Upgrade,
32 Addon,
33 Patch
34 }
35
28 public class WixRelatedBundleTuple : IntermediateTuple 36 public class WixRelatedBundleTuple : IntermediateTuple
29 { 37 {
30 public WixRelatedBundleTuple() : base(TupleDefinitions.WixRelatedBundle, null, null) 38 public WixRelatedBundleTuple() : base(TupleDefinitions.WixRelatedBundle, null, null)
@@ -37,16 +45,16 @@ namespace WixToolset.Data.Tuples
37 45
38 public IntermediateField this[WixRelatedBundleTupleFields index] => this.Fields[(int)index]; 46 public IntermediateField this[WixRelatedBundleTupleFields index] => this.Fields[(int)index];
39 47
40 public string Id 48 public string BundleId
41 { 49 {
42 get => (string)this.Fields[(int)WixRelatedBundleTupleFields.Id]?.Value; 50 get => (string)this.Fields[(int)WixRelatedBundleTupleFields.BundleId]?.Value;
43 set => this.Set((int)WixRelatedBundleTupleFields.Id, value); 51 set => this.Set((int)WixRelatedBundleTupleFields.BundleId, value);
44 } 52 }
45 53
46 public int Action 54 public RelatedBundleActionType Action
47 { 55 {
48 get => (int)this.Fields[(int)WixRelatedBundleTupleFields.Action]?.Value; 56 get => (RelatedBundleActionType)this.Fields[(int)WixRelatedBundleTupleFields.Action].AsNumber();
49 set => this.Set((int)WixRelatedBundleTupleFields.Action, value); 57 set => this.Set((int)WixRelatedBundleTupleFields.Action, (int)value);
50 } 58 }
51 } 59 }
52} \ No newline at end of file 60} \ No newline at end of file