GetEvent

From The Contingency Market

Jump to: navigation, search

Contents

GetEvent(ulSessionID,uSequenceID,sIntegrity,sEventID)

Gets data describing a specific event. All public events are descendents of the root event. An event consists of a predefined parameter and a constraint. An event's parent must succeed in order for any child to succeed. An event has no duration, however a child event may be used to define a subsequent termination event.

PARAMETERS

ulong ulSessionID 
ID of authenticated session.
uint uSequenceID 
Sequence number.
string sIntegrity 
md5("ipaddr(sid,seq)->GetEvent(sEventID)/secret").
string sEventID 
Unique ID of Event (blank for root event).

RETURNS

{sID,sIDParent,sName,sPath,sDetails,sParameterName,sParameterType,sParameterMinimum,sParameterMaximum,bParameterInsideMinMax}

string sID 
32 digit hex representing this event's globally unique id.
string sIDParent 
ID of parent event.
string sName 
Event name.
string sPath 
Event path.
string sParameterName 
Name of event parameter.
string sParameterType 
Type of event parameter.
string sParameterMinimum 
Lower bound for event parameter.
string sParameterMaximum 
Upper bound for event parameter.
bool bParameterInsideMinMax 
Whether parameter value must lie within bounds or not (for event to occur).

FAULTS

Session. Event.

TEST

GetEvent(ID of root) according to the respective template currently returns

Views
Personal tools