Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TokenTransferredEventHandler.cs
4
6{
11 {
16 : base()
17 {
18 }
19
33 string SellerVariable, string BuyerVariable, string ContractVariable, string ValueVariable,
34 string AmountVariable, string CurrencyVariable)
35 : base(Arguments, EventIndex, EventNode)
36 {
37 this.EventType = nameof(TokenTransferredEventHandler) + "|" + EventNode.GetType().Name + "|" + this.StateMachineId;
38 this.SellerVariable = SellerVariable;
39 this.BuyerVariable = BuyerVariable;
40 this.ContractVariable = ContractVariable;
41 this.ValueVariable = ValueVariable;
42 this.AmountVariable = AmountVariable;
43 this.CurrencyVariable = CurrencyVariable;
44 }
45
49 [DefaultValueStringEmpty]
50 public string SellerVariable { get; set; }
51
55 [DefaultValueStringEmpty]
56 public string BuyerVariable { get; set; }
57
61 [DefaultValueStringEmpty]
62 public string ContractVariable { get; set; }
63
67 [DefaultValueStringEmpty]
68 public string ValueVariable { get; set; }
69
73 [DefaultValueStringEmpty]
74 public string AmountVariable { get; set; }
75
79 [DefaultValueStringEmpty]
80 public string CurrencyVariable { get; set; }
81
83 public override bool Equals(object obj)
84 {
85 return
86 base.Equals(obj) &&
88 this.SellerVariable == O.SellerVariable &&
89 this.BuyerVariable == O.BuyerVariable &&
90 this.ContractVariable == O.ContractVariable &&
91 this.ValueVariable == O.ValueVariable &&
92 this.AmountVariable == O.AmountVariable &&
93 this.CurrencyVariable == O.CurrencyVariable;
94 }
95
97 public override int GetHashCode()
98 {
99 int Result = base.GetHashCode();
100
101 Result ^= Result << 5 ^ (this.SellerVariable?.GetHashCode() ?? 0);
102 Result ^= Result << 5 ^ (this.BuyerVariable?.GetHashCode() ?? 0);
103 Result ^= Result << 5 ^ (this.ContractVariable?.GetHashCode() ?? 0);
104 Result ^= Result << 5 ^ (this.ValueVariable?.GetHashCode() ?? 0);
105 Result ^= Result << 5 ^ (this.AmountVariable?.GetHashCode() ?? 0);
106 Result ^= Result << 5 ^ (this.CurrencyVariable?.GetHashCode() ?? 0);
107
108 return Result;
109 }
110 }
111}
int EventIndex
Zero-based index of event handler in state.
Definition: EventHandler.cs:60
TokenTransferredEventHandler(EvaluationArguments Arguments, int EventIndex, TokenEventNode EventNode, string SellerVariable, string BuyerVariable, string ContractVariable, string ValueVariable, string AmountVariable, string CurrencyVariable)
Event handler for token transfer events.
Contains information required for evaluating script in a state-machine.
Abstract base class for State-Machine event nodes.
Definition: EventNode.cs:10