/// <remarks/> public void getSilksAsync(GetSilksReq request, object userState) { if ((this.getSilksOperationCompleted == null)) { this.getSilksOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetSilksOperationCompleted); } this.InvokeAsync("getSilks", new object[] { request}, this.getSilksOperationCompleted, userState); }
public GetSilksResp getSilks(GetSilksReq request) { object[] results = this.Invoke("getSilks", new object[] { request}); return ((GetSilksResp)(results[0])); }
/// <remarks/> public void getSilksAsync(GetSilksReq request) { this.getSilksAsync(request, null); }
/// <summary> /// The API GetSilks service allows you to retrieve a relative URL to the jockey silk image and data about each selection including: /// Silks description, Trainer name, Age and Weight, Form, /// Days since last run, Jockey claim, Wearing text, Saddle cloth, Stall draw. /// Note: The URL returned in the response is relative to a base URL. /// The base URL for the silks image is: /// </summary> /// <param name="exchangeId"></param> /// <param name="marketId"></param> /// <returns></returns> public GetSilksResp GetSilks(int exchangeId, int?[] marketId) { const string serviceName = "GetSilks"; Console.WriteLine("{0}$ API_SERVICE {1}", DateTime.Now, serviceName); var request = new GetSilksReq { header = ((BetfairExchangeAPI.APIRequestHeader) GetHeader(false)), markets = marketId }; var response = _bfExchangeService[exchangeId].getSilks(request); ValidateAPIResponse(serviceName, Convert.ToString(response.header.errorCode), Convert.ToString(response.errorCode), response.header.sessionToken); return response; }