Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler Class Reference

Event handler for token transfer events. More...

Inheritance diagram for Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler:
Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenEventHandler Waher.Service.IoTBroker.StateMachines.EventHandlers.CachedEventHandler Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler

Public Member Functions

 TokenTransferredEventHandler ()
 Event handler for token transfer events. More...
 
 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. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
async Task AddToCache ()
 Removes the event handler from the cache. More...
 
async Task RemoveFromCache ()
 Removes the event handler from the cache. More...
 

Static Public Member Functions

static async Task< CachedEventHandler[]> GetEventHandlers (string EventType)
 Gets registered event handlers of a given event type. More...
 

Properties

string SellerVariable [get, set]
 Optional seller variable. More...
 
string BuyerVariable [get, set]
 Optional buyer variable. More...
 
string ContractVariable [get, set]
 Optional contract variable. More...
 
string ValueVariable [get, set]
 Optional value variable. More...
 
string AmountVariable [get, set]
 Optional amount variable. More...
 
string CurrencyVariable [get, set]
 Optional currency variable. More...
 
string ObjectId [get, set]
 Object ID of event handler. More...
 
string StateMachineId [get, set]
 ID of State-Machine. More...
 
string State [get, set]
 ID of state in state-machine to which the event handler belongs. More...
 
int EventIndex [get, set]
 Zero-based index of event handler in state. More...
 
string EventType [get, set]
 Type of event. More...
 
DateTime Expires [get, set]
 When state-machine expires More...
 
DurationArchiveRequired [get, set]
 Duration after which token expires, the token is required to be archived. More...
 
DurationArchiveOptional [get, set]
 Duration after which token expires, and the required archiving time, the token can optionally be archived. More...
 
int ArchiveDays [get]
 Number of days to archive field. More...
 

Detailed Description

Event handler for token transfer events.

Definition at line 10 of file TokenTransferredEventHandler.cs.

Constructor & Destructor Documentation

◆ TokenTransferredEventHandler() [1/2]

Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.TokenTransferredEventHandler ( )

Event handler for token transfer events.

Definition at line 15 of file TokenTransferredEventHandler.cs.

◆ TokenTransferredEventHandler() [2/2]

Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.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.

Parameters
ArgumentsEvaluation arguments.
EventIndexZero-based index of event, inside the current state.
EventNodeEvent node being registered.
SellerVariableOptional seller variable.
BuyerVariableOptional buyer variable.
ContractVariableOptional contract variable.
ValueVariableOptional value variable.
AmountVariableOptional amount variable (value-fees).
CurrencyVariableOptional currency variable.

Definition at line 32 of file TokenTransferredEventHandler.cs.

Member Function Documentation

◆ AddToCache()

async Task Waher.Service.IoTBroker.StateMachines.EventHandlers.CachedEventHandler.AddToCache ( )
inherited

Removes the event handler from the cache.

Definition at line 46 of file CachedEventHandler.cs.

◆ Equals()

override bool Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.Equals ( object  obj)

Definition at line 83 of file TokenTransferredEventHandler.cs.

◆ GetEventHandlers()

static async Task< CachedEventHandler[]> Waher.Service.IoTBroker.StateMachines.EventHandlers.CachedEventHandler.GetEventHandlers ( string  EventType)
staticinherited

Gets registered event handlers of a given event type.

Parameters
EventTypeEvent type.
Returns
Registered event handlers. null = no registered event handlers.

Definition at line 105 of file CachedEventHandler.cs.

◆ GetHashCode()

override int Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.GetHashCode ( )

Definition at line 97 of file TokenTransferredEventHandler.cs.

◆ RemoveFromCache()

async Task Waher.Service.IoTBroker.StateMachines.EventHandlers.CachedEventHandler.RemoveFromCache ( )
inherited

Removes the event handler from the cache.

Definition at line 81 of file CachedEventHandler.cs.

Property Documentation

◆ AmountVariable

string Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.AmountVariable
getset

Optional amount variable.

Definition at line 74 of file TokenTransferredEventHandler.cs.

◆ ArchiveDays

int Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.ArchiveDays
getinherited

Number of days to archive field.

Definition at line 87 of file EventHandler.cs.

◆ ArchiveOptional

Duration? Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.ArchiveOptional
getsetinherited

Duration after which token expires, and the required archiving time, the token can optionally be archived.

Definition at line 82 of file EventHandler.cs.

◆ ArchiveRequired

Duration? Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.ArchiveRequired
getsetinherited

Duration after which token expires, the token is required to be archived.

Definition at line 76 of file EventHandler.cs.

◆ BuyerVariable

string Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.BuyerVariable
getset

Optional buyer variable.

Definition at line 56 of file TokenTransferredEventHandler.cs.

◆ ContractVariable

string Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.ContractVariable
getset

Optional contract variable.

Definition at line 62 of file TokenTransferredEventHandler.cs.

◆ CurrencyVariable

string Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.CurrencyVariable
getset

Optional currency variable.

Definition at line 80 of file TokenTransferredEventHandler.cs.

◆ EventIndex

int Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.EventIndex
getsetinherited

Zero-based index of event handler in state.

Definition at line 60 of file EventHandler.cs.

◆ EventType

string Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.EventType
getsetinherited

Type of event.

Definition at line 65 of file EventHandler.cs.

◆ Expires

DateTime Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.Expires
getsetinherited

When state-machine expires

Definition at line 70 of file EventHandler.cs.

◆ ObjectId

string Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.ObjectId
getsetinherited

Object ID of event handler.

Definition at line 45 of file EventHandler.cs.

◆ SellerVariable

string Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.SellerVariable
getset

Optional seller variable.

Definition at line 50 of file TokenTransferredEventHandler.cs.

◆ State

string Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.State
getsetinherited

ID of state in state-machine to which the event handler belongs.

Definition at line 55 of file EventHandler.cs.

◆ StateMachineId

string Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.StateMachineId
getsetinherited

ID of State-Machine.

Definition at line 50 of file EventHandler.cs.

◆ ValueVariable

string Waher.Service.IoTBroker.StateMachines.EventHandlers.TokenTransferredEventHandler.ValueVariable
getset

Optional value variable.

Definition at line 68 of file TokenTransferredEventHandler.cs.


The documentation for this class was generated from the following file: