CountOffers

From The Contingency Market

Jump to: navigation, search

Contents

CountOffers(ulSessionID,uSequenceID,sIntegrity,sContingencyID,sAgentID,sSince)

Count the number of offers contingent on a specific contingency that were registered after a particular time.

PARAMETERS

ulong ulSessionID 
ID of authenticated session.
uint uSequenceID 
Sequence number.
string sIntegrity 
md5("ipaddr(sid,seq)->CountOffers(sContingencyID,sAgentID,sSince)/secret")
string sContingencyID 
ID of contingency on which offers are to be counted (blank if all offers).
string sAgentID 
If non-null, ID of agent making/taking offers to be counted.
string sSince 
Earliest registration date to count from. NB Not a TimeInstant or DateTime. The timezone is UTC.

RETURNS

uint

uint 
number of offers contingent upon the specified contingency that were registered since the specified date.

FAULTS

Session. Contingency.

TEST

CountOffers() currently returns: 'System.Web.Services.Protocols.SoapException: BREAK:Sequence mismatch - confidence lost

  at ContingencyMarket.ContingencyMarketAccess.RetrieveSession(ISessionCall iSessionCall) in C:\Crosbie\Work\Digital Productions Ltd\Digital Productions\Contingency Engine\ContingencyMarketAccess.cs:line 264
  at ContingencyMarketService.SessionManager.Retrieve(ISessionCall iSessionCall) in http://server/api/App_Code/SessionManager.cs:line 106
  at ContingencyMarketService.Service.ValidateCall(UInt64 ulSessionID, UInt32 uSequenceID, String sIntegrity, String sIntegrityCheck) in http://server/api/App_Code/Service.cs:line 43
  at ContingencyMarketService.Service.CountOffers(UInt64 ulSessionID, UInt32 uSequenceID, String sIntegrity, String sContingencyID, String sAgentID, String sSince) in http://server/api/App_Code/Service.cs:line 1663'.

CountOffers(null,null,2008-04-01) currently returns: 7598.

Views
Personal tools