diff options
Diffstat (limited to 'src/wixext/Tuples/WixHttpUrlAceTuple.cs')
-rw-r--r-- | src/wixext/Tuples/WixHttpUrlAceTuple.cs | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/wixext/Tuples/WixHttpUrlAceTuple.cs b/src/wixext/Tuples/WixHttpUrlAceTuple.cs new file mode 100644 index 00000000..3e0006a0 --- /dev/null +++ b/src/wixext/Tuples/WixHttpUrlAceTuple.cs | |||
@@ -0,0 +1,71 @@ | |||
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.Http | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Http.Tuples; | ||
7 | |||
8 | public static partial class HttpTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition WixHttpUrlAce = new IntermediateTupleDefinition( | ||
11 | HttpTupleDefinitionType.WixHttpUrlAce.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlAce), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlReservation_), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.SecurityPrincipal), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.Rights), IntermediateFieldType.Number), | ||
18 | }, | ||
19 | typeof(WixHttpUrlAceTuple)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Http.Tuples | ||
24 | { | ||
25 | using WixToolset.Data; | ||
26 | |||
27 | public enum WixHttpUrlAceTupleFields | ||
28 | { | ||
29 | WixHttpUrlAce, | ||
30 | WixHttpUrlReservation_, | ||
31 | SecurityPrincipal, | ||
32 | Rights, | ||
33 | } | ||
34 | |||
35 | public class WixHttpUrlAceTuple : IntermediateTuple | ||
36 | { | ||
37 | public WixHttpUrlAceTuple() : base(HttpTupleDefinitions.WixHttpUrlAce, null, null) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public WixHttpUrlAceTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpTupleDefinitions.WixHttpUrlAce, sourceLineNumber, id) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | public IntermediateField this[WixHttpUrlAceTupleFields index] => this.Fields[(int)index]; | ||
46 | |||
47 | public string WixHttpUrlAce | ||
48 | { | ||
49 | get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlAce].AsString(); | ||
50 | set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlAce, value); | ||
51 | } | ||
52 | |||
53 | public string WixHttpUrlReservation_ | ||
54 | { | ||
55 | get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlReservation_].AsString(); | ||
56 | set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlReservation_, value); | ||
57 | } | ||
58 | |||
59 | public string SecurityPrincipal | ||
60 | { | ||
61 | get => this.Fields[(int)WixHttpUrlAceTupleFields.SecurityPrincipal].AsString(); | ||
62 | set => this.Set((int)WixHttpUrlAceTupleFields.SecurityPrincipal, value); | ||
63 | } | ||
64 | |||
65 | public int Rights | ||
66 | { | ||
67 | get => this.Fields[(int)WixHttpUrlAceTupleFields.Rights].AsNumber(); | ||
68 | set => this.Set((int)WixHttpUrlAceTupleFields.Rights, value); | ||
69 | } | ||
70 | } | ||
71 | } \ No newline at end of file | ||