public ReqBtlComCont(long btlid, BattleCore.Record record, Network.ResponseCallback response, bool multi, bool isMT) { if (isMT) { this.name = "btl/multi/tower/cont"; } else { this.name = !multi ? "btl/com/cont" : "btl/multi/cont"; } if (record != null) { this.body = "\"btlid\":" + (object)btlid + ","; if (!string.IsNullOrEmpty(WebAPI.GetBtlEndParamString(record, multi))) { this.body += WebAPI.GetBtlEndParamString(record, multi); } this.body = WebAPI.GetRequestString(this.body); } else { this.body = WebAPI.GetRequestString("\"btlid\":\"" + (object)btlid + "\""); } this.callback = response; }
public ReqBtlComCont(long btlid, BattleCore.Record record, bool multi) { this.name = ((!multi) ? "btl/com/cont" : "btl/multi/cont"); if (record != null) { this.body = "\"btlid\":" + btlid + ","; string btlEndParamString = WebAPI.GetBtlEndParamString(record, multi); if (!string.IsNullOrEmpty(btlEndParamString)) { this.body += WebAPI.GetBtlEndParamString(record, multi); } this.body = WebAPI.GetRequestString(this.body); } else { this.body = WebAPI.GetRequestString("\"btlid\":\"" + btlid + "\""); } }