aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/WixFirewallExceptionTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/WixFirewallExceptionTuple.cs')
-rw-r--r--src/wixext/Tuples/WixFirewallExceptionTuple.cs93
1 files changed, 93 insertions, 0 deletions
diff --git a/src/wixext/Tuples/WixFirewallExceptionTuple.cs b/src/wixext/Tuples/WixFirewallExceptionTuple.cs
new file mode 100644
index 00000000..715a4b9b
--- /dev/null
+++ b/src/wixext/Tuples/WixFirewallExceptionTuple.cs
@@ -0,0 +1,93 @@
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
3namespace WixToolset.Firewall.Tuples
4{
5 using WixToolset.Data;
6
7 public enum WixFirewallExceptionTupleFields
8 {
9 WixFirewallException,
10 Name,
11 RemoteAddresses,
12 Port,
13 Protocol,
14 Program,
15 Attributes,
16 Profile,
17 Component_,
18 Description,
19 }
20
21 public class WixFirewallExceptionTuple : IntermediateTuple
22 {
23 public WixFirewallExceptionTuple() : base(FirewallTupleDefinitions.WixFirewallException, null, null)
24 {
25 }
26
27 public WixFirewallExceptionTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(FirewallTupleDefinitions.WixFirewallException, sourceLineNumber, id)
28 {
29 }
30
31 public IntermediateField this[WixFirewallExceptionTupleFields index] => this.Fields[(int)index];
32
33 public string WixFirewallException
34 {
35 get => this.Fields[(int)WixFirewallExceptionTupleFields.WixFirewallException].AsString();
36 set => this.Set((int)WixFirewallExceptionTupleFields.WixFirewallException, value);
37 }
38
39 public string Name
40 {
41 get => this.Fields[(int)WixFirewallExceptionTupleFields.Name].AsString();
42 set => this.Set((int)WixFirewallExceptionTupleFields.Name, value);
43 }
44
45 public string RemoteAddresses
46 {
47 get => this.Fields[(int)WixFirewallExceptionTupleFields.RemoteAddresses].AsString();
48 set => this.Set((int)WixFirewallExceptionTupleFields.RemoteAddresses, value);
49 }
50
51 public string Port
52 {
53 get => this.Fields[(int)WixFirewallExceptionTupleFields.Port].AsString();
54 set => this.Set((int)WixFirewallExceptionTupleFields.Port, value);
55 }
56
57 public int Protocol
58 {
59 get => this.Fields[(int)WixFirewallExceptionTupleFields.Protocol].AsNumber();
60 set => this.Set((int)WixFirewallExceptionTupleFields.Protocol, value);
61 }
62
63 public string Program
64 {
65 get => this.Fields[(int)WixFirewallExceptionTupleFields.Program].AsString();
66 set => this.Set((int)WixFirewallExceptionTupleFields.Program, value);
67 }
68
69 public int Attributes
70 {
71 get => this.Fields[(int)WixFirewallExceptionTupleFields.Attributes].AsNumber();
72 set => this.Set((int)WixFirewallExceptionTupleFields.Attributes, value);
73 }
74
75 public int Profile
76 {
77 get => this.Fields[(int)WixFirewallExceptionTupleFields.Profile].AsNumber();
78 set => this.Set((int)WixFirewallExceptionTupleFields.Profile, value);
79 }
80
81 public string Component_
82 {
83 get => this.Fields[(int)WixFirewallExceptionTupleFields.Component_].AsString();
84 set => this.Set((int)WixFirewallExceptionTupleFields.Component_, value);
85 }
86
87 public string Description
88 {
89 get => this.Fields[(int)WixFirewallExceptionTupleFields.Description].AsString();
90 set => this.Set((int)WixFirewallExceptionTupleFields.Description, value);
91 }
92 }
93} \ No newline at end of file