Exemplo n.º 1
0
 private void reqStartWarSuccess(BaseWWWRequest obj)
 {
     try
     {
         this.warResponse  = new JsonFx.Json.JsonReader().Read <StartCampaignWarResponse>(this.UTF8String);
         base.responseData = this.warResponse;
         if (this.warResponse.eid != 0)
         {
             this.reqStartWarFail(obj);
         }
         else
         {
             this.OnStartCampaignWarSuccess(EventArgs.Empty);
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.reqStartWarFail(obj);
     }
 }
 private void reqStartWarSuccess(BaseWWWRequest obj)
 {
     try
     {
         if (this.needZip)
         {
             this.warResponse = JsonReader.Deserialize<StartCampaignWarResponse>(base.UTF8String);
         }
         else
         {
             this.warResponse = JsonReader.Deserialize<StartCampaignWarResponse>(base.www.text);
         }
         base.responseData = this.warResponse;
         if (this.warResponse.eid != 0)
         {
             this.reqStartWarFail(obj);
         }
         else
         {
             this.OnStartCampaignWarSuccess(EventArgs.Empty);
         }
     }
     catch (Exception exception)
     {
         Debug.Log(exception);
         this.reqStartWarFail(obj);
     }
 }
Exemplo n.º 3
0
 private void reqStartWarSuccess(BaseWWWRequest obj)
 {
     try
     {
         this.warResponse = new JsonFx.Json.JsonReader().Read<StartCampaignWarResponse>(this.UTF8String);
         base.responseData = this.warResponse;
         if (this.warResponse.eid != 0)
         {
             this.reqStartWarFail(obj);
         }
         else
         {
             this.OnStartCampaignWarSuccess(EventArgs.Empty);
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.reqStartWarFail(obj);
     }
 }