| 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 | |
| 3 | namespace WixToolset.Data |
| 4 | { |
| 5 | using WixToolset.Data.Symbols; |
| 6 | |
| 7 | public static partial class SymbolDefinitions |
| 8 | { |
| 9 | public static readonly IntermediateSymbolDefinition WixBundlePackageCommandLine = new IntermediateSymbolDefinition( |
| 10 | SymbolDefinitionType.WixBundlePackageCommandLine, |
| 11 | new[] |
| 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.InstallArgument), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.UninstallArgument), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.RepairArgument), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.Condition), IntermediateFieldType.String), |
| 18 | }, |
| 19 | typeof(WixBundlePackageCommandLineSymbol)); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | namespace WixToolset.Data.Symbols |
| 24 | { |
| 25 | public enum WixBundlePackageCommandLineSymbolFields |
| 26 | { |
| 27 | WixBundlePackageRef, |
| 28 | InstallArgument, |
| 29 | UninstallArgument, |
| 30 | RepairArgument, |
| 31 | Condition, |
| 32 | } |
| 33 | |
| 34 | public class WixBundlePackageCommandLineSymbol : IntermediateSymbol |
| 35 | { |
| 36 | public WixBundlePackageCommandLineSymbol() : base(SymbolDefinitions.WixBundlePackageCommandLine, null, null) |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | public WixBundlePackageCommandLineSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackageCommandLine, sourceLineNumber, id) |
| 41 | { |
| 42 | } |
| 43 | |
| 44 | public IntermediateField this[WixBundlePackageCommandLineSymbolFields index] => this.Fields[(int)index]; |
| 45 | |
| 46 | public string WixBundlePackageRef |
| 47 | { |
| 48 | get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef]; |
| 49 | set => this.Set((int)WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef, value); |
| 50 | } |
| 51 | |
| 52 | public string InstallArgument |
| 53 | { |
| 54 | get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.InstallArgument]; |
| 55 | set => this.Set((int)WixBundlePackageCommandLineSymbolFields.InstallArgument, value); |
| 56 | } |
| 57 | |
| 58 | public string UninstallArgument |
| 59 | { |
| 60 | get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.UninstallArgument]; |
| 61 | set => this.Set((int)WixBundlePackageCommandLineSymbolFields.UninstallArgument, value); |
| 62 | } |
| 63 | |
| 64 | public string RepairArgument |
| 65 | { |
| 66 | get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.RepairArgument]; |
| 67 | set => this.Set((int)WixBundlePackageCommandLineSymbolFields.RepairArgument, value); |
| 68 | } |
| 69 | |
| 70 | public string Condition |
| 71 | { |
| 72 | get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.Condition]; |
| 73 | set => this.Set((int)WixBundlePackageCommandLineSymbolFields.Condition, value); |
| 74 | } |
| 75 | } |
| 76 | } |