diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/AppIdTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/AppIdTuple.cs | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/AppIdTuple.cs b/src/WixToolset.Data/Tuples/AppIdTuple.cs new file mode 100644 index 00000000..7816e4c3 --- /dev/null +++ b/src/WixToolset.Data/Tuples/AppIdTuple.cs | |||
@@ -0,0 +1,92 @@ | |||
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.Tuples; | ||
6 | |||
7 | public static partial class TupleDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateTupleDefinition AppId = new IntermediateTupleDefinition( | ||
10 | TupleDefinitionType.AppId, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(AppIdTupleFields.AppId), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(AppIdTupleFields.RemoteServerName), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(AppIdTupleFields.LocalService), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(AppIdTupleFields.ServiceParameters), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(AppIdTupleFields.DllSurrogate), IntermediateFieldType.String), | ||
18 | new IntermediateFieldDefinition(nameof(AppIdTupleFields.ActivateAtStorage), IntermediateFieldType.Number), | ||
19 | new IntermediateFieldDefinition(nameof(AppIdTupleFields.RunAsInteractiveUser), IntermediateFieldType.Number), | ||
20 | }, | ||
21 | typeof(AppIdTuple)); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | namespace WixToolset.Data.Tuples | ||
26 | { | ||
27 | public enum AppIdTupleFields | ||
28 | { | ||
29 | AppId, | ||
30 | RemoteServerName, | ||
31 | LocalService, | ||
32 | ServiceParameters, | ||
33 | DllSurrogate, | ||
34 | ActivateAtStorage, | ||
35 | RunAsInteractiveUser, | ||
36 | } | ||
37 | |||
38 | public class AppIdTuple : IntermediateTuple | ||
39 | { | ||
40 | public AppIdTuple() : base(TupleDefinitions.AppId, null, null) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | public AppIdTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.AppId, sourceLineNumber, id) | ||
45 | { | ||
46 | } | ||
47 | |||
48 | public IntermediateField this[AppIdTupleFields index] => this.Fields[(int)index]; | ||
49 | |||
50 | public string AppId | ||
51 | { | ||
52 | get => (string)this.Fields[(int)AppIdTupleFields.AppId]?.Value; | ||
53 | set => this.Set((int)AppIdTupleFields.AppId, value); | ||
54 | } | ||
55 | |||
56 | public string RemoteServerName | ||
57 | { | ||
58 | get => (string)this.Fields[(int)AppIdTupleFields.RemoteServerName]?.Value; | ||
59 | set => this.Set((int)AppIdTupleFields.RemoteServerName, value); | ||
60 | } | ||
61 | |||
62 | public string LocalService | ||
63 | { | ||
64 | get => (string)this.Fields[(int)AppIdTupleFields.LocalService]?.Value; | ||
65 | set => this.Set((int)AppIdTupleFields.LocalService, value); | ||
66 | } | ||
67 | |||
68 | public string ServiceParameters | ||
69 | { | ||
70 | get => (string)this.Fields[(int)AppIdTupleFields.ServiceParameters]?.Value; | ||
71 | set => this.Set((int)AppIdTupleFields.ServiceParameters, value); | ||
72 | } | ||
73 | |||
74 | public string DllSurrogate | ||
75 | { | ||
76 | get => (string)this.Fields[(int)AppIdTupleFields.DllSurrogate]?.Value; | ||
77 | set => this.Set((int)AppIdTupleFields.DllSurrogate, value); | ||
78 | } | ||
79 | |||
80 | public int ActivateAtStorage | ||
81 | { | ||
82 | get => (int)this.Fields[(int)AppIdTupleFields.ActivateAtStorage]?.Value; | ||
83 | set => this.Set((int)AppIdTupleFields.ActivateAtStorage, value); | ||
84 | } | ||
85 | |||
86 | public int RunAsInteractiveUser | ||
87 | { | ||
88 | get => (int)this.Fields[(int)AppIdTupleFields.RunAsInteractiveUser]?.Value; | ||
89 | set => this.Set((int)AppIdTupleFields.RunAsInteractiveUser, value); | ||
90 | } | ||
91 | } | ||
92 | } \ No newline at end of file | ||