Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PaymentEventHandler.cs
4
6{
10 public abstract class PaymentEventHandler : OwnerEventHandler
11 {
16 : base()
17 {
18 }
19
37 : base(Arguments, EventIndex, EventNode, OwnerJid)
38 {
39 this.RemoteVariable = RemoteVariable;
40 this.AmountVariable = AmountVariable;
41 this.AmountExtraVariable = AmountExtraVariable;
42 this.AmountTotalVariable = AmountTotalVariable;
43 this.CurrencyVariable = CurrencyVariable;
44 this.ReferenceVariable = ReferenceVariable;
45 this.ConditionVariable = ConditionVariable;
46 }
47
51 [DefaultValueStringEmpty]
52 public string RemoteVariable { get; set; }
53
57 [DefaultValueStringEmpty]
58 public string AmountVariable { get; set; }
59
63 [DefaultValueStringEmpty]
64 public string AmountExtraVariable { get; set; }
65
69 [DefaultValueStringEmpty]
70 public string AmountTotalVariable { get; set; }
71
75 [DefaultValueStringEmpty]
76 public string CurrencyVariable { get; set; }
77
81 [DefaultValueStringEmpty]
82 public string ReferenceVariable { get; set; }
83
87 [DefaultValueStringEmpty]
88 public string ConditionVariable { get; set; }
89
91 public override bool Equals(object obj)
92 {
93 return
94 base.Equals(obj) &&
95 obj is PaymentEventHandler O &&
96 this.RemoteVariable == O.RemoteVariable &&
97 this.AmountVariable == O.AmountVariable &&
98 this.AmountExtraVariable == O.AmountExtraVariable &&
99 this.AmountTotalVariable == O.AmountTotalVariable &&
100 this.CurrencyVariable == O.CurrencyVariable &&
101 this.ReferenceVariable == O.ReferenceVariable &&
102 this.ConditionVariable == O.ConditionVariable;
103 }
104
106 public override int GetHashCode()
107 {
108 int Result = base.GetHashCode();
109
110 Result ^= Result << 5 ^ (this.RemoteVariable?.GetHashCode() ?? 0);
111 Result ^= Result << 5 ^ (this.AmountVariable?.GetHashCode() ?? 0);
112 Result ^= Result << 5 ^ (this.AmountExtraVariable?.GetHashCode() ?? 0);
113 Result ^= Result << 5 ^ (this.AmountTotalVariable?.GetHashCode() ?? 0);
114 Result ^= Result << 5 ^ (this.CurrencyVariable?.GetHashCode() ?? 0);
115 Result ^= Result << 5 ^ (this.ReferenceVariable?.GetHashCode() ?? 0);
116 Result ^= Result << 5 ^ (this.ConditionVariable?.GetHashCode() ?? 0);
117
118 return Result;
119 }
120 }
121}
int EventIndex
Zero-based index of event handler in state.
Definition: EventHandler.cs:60
PaymentEventHandler(EvaluationArguments Arguments, int EventIndex, OwnerEventNode EventNode, string OwnerJid, string RemoteVariable, string AmountVariable, string AmountExtraVariable, string AmountTotalVariable, string CurrencyVariable, string ReferenceVariable, string ConditionVariable)
Abstract base class for payment event handlerss.
PaymentEventHandler()
Abstract base class for payment event handlerss.
Contains information required for evaluating script in a state-machine.
Abstract base class for State-Machine event nodes.
Definition: EventNode.cs:10