CountEventChildren

From The Contingency Market

Jump to: navigation, search

Contents

CountEventChildren(ulSessionID,uSequenceID,sIntegrity,sEventID,sPattern)

Count the number of child events having a parameter name matching a given pattern.

PARAMETERS

ulong ulSessionID 
ID of authenticated session.
uint uSequenceID 
Sequence number.
string sIntegrity 
md5("ipaddr(sid,seq)->CountEventChildren(sEventID,sPattern)/secret").
string sEventID 
ID of event whose children should be counted (blank for root event).
string sPattern 
Wildcarded search pattern compared against event parameter name. Empty matches all. % any string. _ any char. [a-z] char in range. [^a-z] char not in range.

RETURNS

uint

uint 
number of child events matching the specified pattern.

FAULTS

Session.

TEST

CountEventChildren() via its template currently returns: 5.

Views
Personal tools