コード例 #1
0
 public override void HandleError(Roar.RequestResult info)
 {
     if (urbanAirshipRegistrationFailed != null)
     {
         urbanAirshipRegistrationFailed(info.msg);
     }
 }
コード例 #2
0
 public void OnError(Roar.RequestResult info)
 {
     // Reset this function call
     model.isServerCalling = false;
     if (cb != null)
     {
         cb(new Roar.CallbackInfo <IDictionary <string, CT> >(null, info.code, info.msg));
     }
 }
コード例 #3
0
 public void OnRequest(Roar.RequestResult info)
 {
     Prologue();
     if (info.code != IWebAPI.OK)
     {
         if (cb_ != null)
         {
             cb_.OnError(info);
         }
         OnFailure(info);
     }
     else
     {
         T result_data = converter_.Build(info.data);
         Roar.CallbackInfo <T> result = new Roar.CallbackInfo <T> (result_data, info.code, info.msg);
         if (cb_ != null)
         {
             cb_.OnSuccess(result);
         }
         OnSuccess(result);
     }
     Epilogue();
 }
コード例 #4
0
 public virtual void OnFailure(Roar.RequestResult info)
 {
 }