Ejemplo n.º 1
0
 public IAsyncResult BeginGetBalance(GetBalanceRequest GetBalanceRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetBalance", new object[1]
       {
     (object) GetBalanceRequest
       }, callback, asyncState);
 }
Ejemplo n.º 2
0
 public balanceItem GetBalance(sessionType session, string currency)
 {
     GetBalanceRequest GetBalanceRequest = new GetBalanceRequest();
       DateTime utcNow = DateTime.UtcNow;
       GetBalanceRequest.nonce = Signature.GetNonce();
       GetBalanceRequest.connectId = session.connectId;
       GetBalanceRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "getbalance", GetBalanceRequest.nonce);
       GetBalanceRequest.timestamp = Signature.GetZDateTime(utcNow);
       GetBalanceRequest.currency = currency;
       GetBalanceResponse balance = this.publisherService.GetBalance(GetBalanceRequest);
       if (balance == null)
     return (balanceItem) null;
       else
     return balance.balanceItem;
 }