diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:35:21 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:44:59 -0700 |
| commit | ef6485ac4a03333701d343c1e3a52d25805c58f1 (patch) | |
| tree | 3093b1410e651a90c3776b42090bb4e62e98c514 /src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs | |
| parent | 6e7a3274a1710a734e5369d0a1703b9c9ac9345b (diff) | |
| download | wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.gz wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.bz2 wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.zip | |
Add additional strongly typed tuples
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs b/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs index 043be793..bcf32cb6 100644 --- a/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs +++ b/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs | |||
| @@ -10,9 +10,10 @@ namespace WixToolset.Data | |||
| 10 | TupleDefinitionType.MsiServiceConfigFailureActions, | 10 | TupleDefinitionType.MsiServiceConfigFailureActions, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.MsiServiceConfigFailureActions), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Name), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Name), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Event), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnInstall), IntermediateFieldType.Bool), |
| 15 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnReinstall), IntermediateFieldType.Bool), | ||
| 16 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnUninstall), IntermediateFieldType.Bool), | ||
| 16 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.ResetPeriod), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.ResetPeriod), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.RebootMessage), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.RebootMessage), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Command), IntermediateFieldType.String), | 19 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Command), IntermediateFieldType.String), |
| @@ -28,9 +29,10 @@ namespace WixToolset.Data.Tuples | |||
| 28 | { | 29 | { |
| 29 | public enum MsiServiceConfigFailureActionsTupleFields | 30 | public enum MsiServiceConfigFailureActionsTupleFields |
| 30 | { | 31 | { |
| 31 | MsiServiceConfigFailureActions, | ||
| 32 | Name, | 32 | Name, |
| 33 | Event, | 33 | OnInstall, |
| 34 | OnReinstall, | ||
| 35 | OnUninstall, | ||
| 34 | ResetPeriod, | 36 | ResetPeriod, |
| 35 | RebootMessage, | 37 | RebootMessage, |
| 36 | Command, | 38 | Command, |
| @@ -51,27 +53,33 @@ namespace WixToolset.Data.Tuples | |||
| 51 | 53 | ||
| 52 | public IntermediateField this[MsiServiceConfigFailureActionsTupleFields index] => this.Fields[(int)index]; | 54 | public IntermediateField this[MsiServiceConfigFailureActionsTupleFields index] => this.Fields[(int)index]; |
| 53 | 55 | ||
| 54 | public string MsiServiceConfigFailureActions | ||
| 55 | { | ||
| 56 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.MsiServiceConfigFailureActions]?.Value; | ||
| 57 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.MsiServiceConfigFailureActions, value); | ||
| 58 | } | ||
| 59 | |||
| 60 | public string Name | 56 | public string Name |
| 61 | { | 57 | { |
| 62 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Name]?.Value; | 58 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Name]?.Value; |
| 63 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Name, value); | 59 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Name, value); |
| 64 | } | 60 | } |
| 65 | 61 | ||
| 66 | public int Event | 62 | public bool OnInstall |
| 63 | { | ||
| 64 | get => this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.OnInstall].AsBool(); | ||
| 65 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.OnInstall, value); | ||
| 66 | } | ||
| 67 | |||
| 68 | public bool OnReinstall | ||
| 69 | { | ||
| 70 | get => this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.OnReinstall].AsBool(); | ||
| 71 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.OnReinstall, value); | ||
| 72 | } | ||
| 73 | |||
| 74 | public bool OnUninstall | ||
| 67 | { | 75 | { |
| 68 | get => (int)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Event]?.Value; | 76 | get => this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.OnUninstall].AsBool(); |
| 69 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Event, value); | 77 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.OnUninstall, value); |
| 70 | } | 78 | } |
| 71 | 79 | ||
| 72 | public int ResetPeriod | 80 | public int? ResetPeriod |
| 73 | { | 81 | { |
| 74 | get => (int)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.ResetPeriod]?.Value; | 82 | get => (int)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.ResetPeriod].AsNullableNumber(); |
| 75 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.ResetPeriod, value); | 83 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.ResetPeriod, value); |
| 76 | } | 84 | } |
| 77 | 85 | ||
