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); } }
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); } }