public ReqGAuthMigrateFgG(string secretKey, string deviceID, string mail, string password, Network.ResponseCallback response) { this.name = "gauth/achievement/mgrate"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"secret_key\":\""); stringBuilder.Append(secretKey); stringBuilder.Append("\",\"device_id\":\""); stringBuilder.Append(deviceID); stringBuilder.Append("\",\"email\":\""); stringBuilder.Append(mail); stringBuilder.Append("\",\"password\":\""); stringBuilder.Append(password); stringBuilder.Append("\""); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqJobEquipV2(long iid_unit, string iname_jobset, long slot, bool is_cmn, Network.ResponseCallback response) { this.name = "unit/job/equip/set2"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iid\":"); stringBuilder.Append(iid_unit); stringBuilder.Append(",\"iname\":\""); stringBuilder.Append(iname_jobset); stringBuilder.Append("\""); stringBuilder.Append(",\"slot\":"); stringBuilder.Append(slot); stringBuilder.Append(",\"is_cmn\":"); stringBuilder.Append(!is_cmn ? 0 : 1); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public API_ReqQuestRanking(int schedule_id, RankingQuestType type, string quest_id, int rank, bool isOwn, Network.ResponseCallback response) { this.name = "quest/ranking"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); FlowNode_ReqQuestRanking.API_ReqQuestRanking.AppendKeyValue(stringBuilder, nameof(schedule_id), schedule_id); stringBuilder.Append(","); FlowNode_ReqQuestRanking.API_ReqQuestRanking.AppendKeyValue(stringBuilder, nameof(type), (int)type); stringBuilder.Append(","); FlowNode_ReqQuestRanking.API_ReqQuestRanking.AppendKeyValue(stringBuilder, "iname", quest_id); stringBuilder.Append(","); FlowNode_ReqQuestRanking.API_ReqQuestRanking.AppendKeyValue(stringBuilder, nameof(rank), rank); stringBuilder.Append(","); FlowNode_ReqQuestRanking.API_ReqQuestRanking.AppendKeyValue(stringBuilder, "is_near", !isOwn ? 0 : 1); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqParty(Network.ResponseCallback response, bool needUpdateMultiRoom = false, bool ignoreEmpty = true) { List <PartyData> partys = MonoSingleton <GameManager> .Instance.Player.Partys; this.name = "party2"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"parties\":["); int num = 0; for (int index1 = 0; index1 < partys.Count; ++index1) { if (!ignoreEmpty || partys[index1].Num != 0) { if (num > 0) { stringBuilder.Append(','); } stringBuilder.Append("{\"units\":["); for (int index2 = 0; index2 < partys[index1].MAX_UNIT; ++index2) { if (index2 > 0) { stringBuilder.Append(','); } stringBuilder.Append(partys[index1].GetUnitUniqueID(index2)); } stringBuilder.Append(']'); string stringFromPartyType = PartyData.GetStringFromPartyType((PlayerPartyTypes)index1); stringBuilder.Append(",\"ptype\":\""); stringBuilder.Append(stringFromPartyType); stringBuilder.Append('"'); stringBuilder.Append('}'); ++num; } } stringBuilder.Append(']'); if (needUpdateMultiRoom) { stringBuilder.Append(",\"roomowner\":1"); DebugUtility.Log("UpdateMulti!"); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqSellConceptCard(long[] sell_ids, Network.ResponseCallback response) { this.name = "unit/concept/sell"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"sell_ids\":["); for (int index = 0; index < sell_ids.Length; ++index) { stringBuilder.Append(sell_ids[index]); if (index != sell_ids.Length - 1) { stringBuilder.Append(","); } } stringBuilder.Append("]"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqChatChannelList(int[] channel_ids, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "chat/channel"; stringBuilder.Append("\"channel_ids\":["); for (int index = 0; index < channel_ids.Length; ++index) { stringBuilder.Append(channel_ids[index]); if (index != channel_ids.Length - 1) { stringBuilder.Append(","); } } stringBuilder.Append("]"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
private void Setup(long iid_unit, long iid_job, string ptype, Network.ResponseCallback response) { this.name = "unit/job/set"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iid\":"); stringBuilder.Append(iid_unit); stringBuilder.Append(",\"iid_job\":"); stringBuilder.Append(iid_job); if (!string.IsNullOrEmpty(ptype)) { stringBuilder.Append(",\"type\":\""); stringBuilder.Append(ptype); stringBuilder.Append('"'); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqVersusAudience(string appid, string version, string roomid, Network.ResponseCallback response, DownloadHandler handler) { this.name = "photon/watching/view"; this.body = string.Empty; ReqVersusAudience reqVersusAudience1 = this; reqVersusAudience1.body = reqVersusAudience1.body + "\"appid\":\"" + JsonEscape.Escape(appid) + "\","; ReqVersusAudience reqVersusAudience2 = this; reqVersusAudience2.body = reqVersusAudience2.body + "\"appversion\":\"" + JsonEscape.Escape(version) + "\","; ReqVersusAudience reqVersusAudience3 = this; reqVersusAudience3.body = reqVersusAudience3.body + "\"roomname\":\"" + JsonEscape.Escape(roomid) + "\""; this.body = WebAPI.GetRequestString(this.body); this.callback = response; this.dlHandler = handler; this.reqtype = WebAPI.ReqeustType.REQ_STREAM; }
public ReqVersus(string iname, int plid, int seat, string uid, VersusStatusData param, int num, Network.ResponseCallback response, VERSUS_TYPE type, int draft_id = 0, int enemy_draft_id = 0) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "vs/" + type.ToString().ToLower() + "match/req"; stringBuilder.Append("\"iname\":\""); stringBuilder.Append(JsonEscape.Escape(iname)); stringBuilder.Append("\","); stringBuilder.Append("\"token\":\""); stringBuilder.Append(JsonEscape.Escape(GlobalVars.SelectedMultiPlayRoomName)); stringBuilder.Append("\","); stringBuilder.Append("\"plid\":\""); stringBuilder.Append(plid); stringBuilder.Append("\","); stringBuilder.Append("\"seat\":\""); stringBuilder.Append(seat); stringBuilder.Append("\","); stringBuilder.Append("\"uid\":\""); stringBuilder.Append(uid); stringBuilder.Append("\""); stringBuilder.Append(","); stringBuilder.Append("\"status\":{"); stringBuilder.Append("\"hp\":" + (object)param.Hp + ","); stringBuilder.Append("\"atk\":" + (object)param.Atk + ","); stringBuilder.Append("\"def\":" + (object)param.Def + ","); stringBuilder.Append("\"matk\":" + (object)param.Matk + ","); stringBuilder.Append("\"mdef\":" + (object)param.Mdef + ","); stringBuilder.Append("\"dex\":" + (object)param.Dex + ","); stringBuilder.Append("\"spd\":" + (object)param.Spd + ","); stringBuilder.Append("\"cri\":" + (object)param.Cri + ","); stringBuilder.Append("\"luck\":" + (object)param.Luck + ","); stringBuilder.Append("\"cmb\":" + (object)param.Cmb + ","); stringBuilder.Append("\"move\":" + (object)param.Move + ","); stringBuilder.Append("\"jmp\":" + (object)param.Jmp); stringBuilder.Append("}"); stringBuilder.Append(",\"member_count\":" + (object)num); if (draft_id > 0) { stringBuilder.Append(",\"draft_id\":" + (object)draft_id); stringBuilder.Append(",\"enemy_draft_id\":" + (object)enemy_draft_id); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqOrdealPartyUpdate(Network.ResponseCallback response, List <PartyEditData> parties) { PartyData party = MonoSingleton <GameManager> .Instance.Player.Partys[9]; this.name = "party2/ordeal/update"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"parties\":["); int num = 0; stringBuilder.Append("{\"units\":["); using (List <PartyEditData> .Enumerator enumerator = parties.GetEnumerator()) { while (enumerator.MoveNext()) { PartyEditData current = enumerator.Current; if (num > 0) { stringBuilder.Append(','); } stringBuilder.Append('['); for (int index = 0; index < party.MAX_UNIT && index < current.Units.Length && current.Units[index] != null; ++index) { if (index > 0) { stringBuilder.Append(','); } stringBuilder.Append(current.Units[index].UniqueID); } stringBuilder.Append(']'); ++num; } } stringBuilder.Append(']'); string stringFromPartyType = PartyData.GetStringFromPartyType(PlayerPartyTypes.Ordeal); stringBuilder.Append(",\"ptype\":\""); stringBuilder.Append(stringFromPartyType); stringBuilder.Append('"'); stringBuilder.Append('}'); stringBuilder.Append(']'); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqUnitPlus(long iid, Network.ResponseCallback response, string trophyprog = null, string bingoprog = null) { this.name = "unit/plus/add"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iid\":" + (object)iid); if (!string.IsNullOrEmpty(trophyprog)) { stringBuilder.Append(","); stringBuilder.Append(trophyprog); } if (!string.IsNullOrEmpty(bingoprog)) { stringBuilder.Append(","); stringBuilder.Append(bingoprog); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqChatMessageRoom(long start_id, string room_token, int limit, long exclude_id, bool isMultiPush, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "chat/room/message"; stringBuilder.Append("\"start_id\":" + start_id.ToString() + ","); if (!string.IsNullOrEmpty(room_token)) { stringBuilder.Append("\"room_token\":\"" + room_token + "\","); } stringBuilder.Append("\"limit\":" + limit.ToString() + ","); stringBuilder.Append("\"exclude_id\":" + exclude_id.ToString()); if (isMultiPush) { stringBuilder.Append(",\"is_multi_push\":1"); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqBtlComRaid(string iname, int ticket, Network.ResponseCallback response, int partyIndex) { this.name = "btl/com/raid2"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iname\":\""); stringBuilder.Append(iname); stringBuilder.Append("\","); if (partyIndex >= 0) { stringBuilder.Append("\"partyid\":"); stringBuilder.Append(partyIndex); stringBuilder.Append(","); } stringBuilder.Append("\"ticket\":"); stringBuilder.Append(ticket.ToString()); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqTowerRecover(string qid, int coin, int round, byte floor, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "tower/recover"; stringBuilder.Append("\"qid\":\""); stringBuilder.Append(qid); stringBuilder.Append("\","); stringBuilder.Append("\"coin\":"); stringBuilder.Append(coin); stringBuilder.Append(","); stringBuilder.Append("\"round\":"); stringBuilder.Append(round); stringBuilder.Append(","); stringBuilder.Append("\"floor\":"); stringBuilder.Append(floor); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqSendChatStampRoom(string room_token, int stamp_id, string[] uids, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "chat/room/send/stamp"; stringBuilder.Append("\"room_token\":\"" + room_token + "\","); stringBuilder.Append("\"stamp_id\":" + stamp_id.ToString() + ","); stringBuilder.Append("\"uids\":["); for (int index = 0; index < uids.Length; ++index) { stringBuilder.Append("\"" + uids[index] + "\""); if (index != uids.Length - 1) { stringBuilder.Append(","); } } stringBuilder.Append("]"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqArtifactAddRare(long iid, Network.ResponseCallback response, string trophyprog = null, string bingoprog = null) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iid\":"); stringBuilder.Append(iid); if (!string.IsNullOrEmpty(trophyprog)) { stringBuilder.Append(","); stringBuilder.Append(trophyprog); } if (!string.IsNullOrEmpty(bingoprog)) { stringBuilder.Append(","); stringBuilder.Append(bingoprog); } this.name = "unit/job/artifact/rare/add"; this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqReadTips(string tips, string trophyprog, string bingoprog, Network.ResponseCallback response) { this.name = "tips/end"; StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append("\"iname\":"); stringBuilder.Append("\"" + tips + "\""); if (!string.IsNullOrEmpty(trophyprog)) { stringBuilder.Append(","); stringBuilder.Append(trophyprog); } if (!string.IsNullOrEmpty(bingoprog)) { stringBuilder.Append(","); stringBuilder.Append(bingoprog); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqBtlOrdealReq(string iname, List <SupportData> supports, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "btl/ordeal/req"; stringBuilder.Append("\"iname\":\""); stringBuilder.Append(iname); stringBuilder.Append("\","); stringBuilder.Append("\"req_at\":"); stringBuilder.Append(Network.GetServerTime()); stringBuilder.Append(","); stringBuilder.Append("\"btlparam\":{\"helps\":["); for (int index = 0; index < supports.Count; ++index) { if (supports != null) { if (index > 0) { stringBuilder.Append(","); } SupportData support = supports[index]; if (support == null) { stringBuilder.Append("{}"); } else { stringBuilder.Append("{"); stringBuilder.Append("\"fuid\":"); stringBuilder.Append("\"" + support.FUID + "\""); stringBuilder.Append(",\"elem\":" + (object)support.Unit.SupportElement); stringBuilder.Append(",\"iname\":\"" + support.Unit.UnitID + "\""); stringBuilder.Append("}"); } } } stringBuilder.Append("]"); stringBuilder.Append("}"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqMultiAreaRoom(string fuid, string[] iname, Vector2 location, Network.ResponseCallback response) { this.name = "btl/room/areaquest"; this.body = string.Empty; if (!string.IsNullOrEmpty(fuid)) { ReqMultiAreaRoom reqMultiAreaRoom = this; reqMultiAreaRoom.body = reqMultiAreaRoom.body + "\"fuid\":\"" + JsonEscape.Escape(fuid) + "\""; } if (iname != null && iname.Length > 0) { if (!string.IsNullOrEmpty(this.body)) { this.body += ","; } this.body += "\"iname\":["; for (int index = 0; index < iname.Length; ++index) { if (index != 0) { this.body += ","; } ReqMultiAreaRoom reqMultiAreaRoom = this; reqMultiAreaRoom.body = reqMultiAreaRoom.body + "\"" + JsonEscape.Escape(iname[index]) + "\""; } this.body += "]"; } if (!string.IsNullOrEmpty(this.body)) { this.body += ","; } this.body += "\"location\":{"; ReqMultiAreaRoom reqMultiAreaRoom1 = this; reqMultiAreaRoom1.body = reqMultiAreaRoom1.body + "\"lat\":" + (object)(float)location.x + ","; ReqMultiAreaRoom reqMultiAreaRoom2 = this; reqMultiAreaRoom2.body = reqMultiAreaRoom2.body + "\"lng\":" + (object)(float)location.y + "}"; this.body = WebAPI.GetRequestString(this.body); this.callback = response; }
public ReqFriendPresentSend(string url, Network.ResponseCallback response, string text, string trophyprog = null, string bingoprog = null) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append(text); if (!string.IsNullOrEmpty(trophyprog)) { stringBuilder.Append(trophyprog); } if (!string.IsNullOrEmpty(bingoprog)) { if (!string.IsNullOrEmpty(trophyprog)) { stringBuilder.Append(","); } stringBuilder.Append(bingoprog); } this.name = url; this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqBtlColoReq(string questID, string fuid, ArenaPlayer ap, Network.ResponseCallback response, int partyIndex) { this.name = "btl/colo/req"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); if (partyIndex >= 0) { stringBuilder.Append("\"partyid\":"); stringBuilder.Append(partyIndex); stringBuilder.Append(","); } stringBuilder.Append("\"btlparam\":{},"); stringBuilder.Append("\"fuid\":\""); stringBuilder.Append(fuid); stringBuilder.Append("\""); stringBuilder.Append(","); stringBuilder.Append("\"opp_rank\":"); stringBuilder.Append(ap.ArenaRank); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqArtifactSell(long[] artifact_iids, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"sells\":["); string str = string.Empty; for (int index = 0; index < artifact_iids.Length; ++index) { str = str + artifact_iids[index].ToString() + ","; } if (str.Length > 0) { str = str.Substring(0, str.Length - 1); } stringBuilder.Append(str); stringBuilder.Append("]"); this.name = "unit/job/artifact/sell"; this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqMixConceptCardMaterialData(long base_id, List <SelecteConceptCardMaterial> materials, Network.ResponseCallback response, string trophyProgs = null, string bingoProgs = null) { this.name = "unit/concept/mixall"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"base_id\":"); stringBuilder.Append(base_id); stringBuilder.Append(","); stringBuilder.Append("\"use_item\":["); for (int index = 0; index < materials.Count; ++index) { stringBuilder.Append("{"); stringBuilder.Append("\"unique_id\":"); stringBuilder.Append((long)materials[index].mUniqueID); stringBuilder.Append(","); stringBuilder.Append("\"use_num\":"); stringBuilder.Append(materials[index].mSelectNum); if (index < materials.Count - 1) { stringBuilder.Append("},"); } else { stringBuilder.Append("}"); } } stringBuilder.Append("]"); if (!string.IsNullOrEmpty(trophyProgs)) { stringBuilder.Append(","); stringBuilder.Append(trophyProgs); } if (!string.IsNullOrEmpty(bingoProgs)) { stringBuilder.Append(","); stringBuilder.Append(bingoProgs); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqFriendBlockApply(string[] _friends, string[] _blocks, Network.ResponseCallback _response) { this.name = "friend/multi/req"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"friends\":["); if (_friends != null && _friends.Length > 0) { for (int index = 0; index < _friends.Length; ++index) { if (index > 0) { stringBuilder.Append(","); } stringBuilder.Append("\""); stringBuilder.Append(_friends[index]); stringBuilder.Append("\""); } } stringBuilder.Append("]"); stringBuilder.Append(","); stringBuilder.Append("\"blocks\":["); if (_blocks != null && _blocks.Length > 0) { for (int index = 0; index < _blocks.Length; ++index) { if (index > 0) { stringBuilder.Append(","); } stringBuilder.Append("\""); stringBuilder.Append(_blocks[index]); stringBuilder.Append("\""); } } stringBuilder.Append("]"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = _response; }
public ReqArtifactSet(long iid_unit, long iid_job, long[] iid_artifact, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iid_unit\":"); stringBuilder.Append(iid_unit); stringBuilder.Append(",\"iid_job\":"); stringBuilder.Append(iid_job); stringBuilder.Append(",\"iid_artifacts\":["); for (int index = 0; index < iid_artifact.Length; ++index) { if (index > 0) { stringBuilder.Append(','); } stringBuilder.Append(iid_artifact[index]); } stringBuilder.Append(']'); this.name = "unit/job/artifact/set"; this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqBtlCom(Network.ResponseCallback response, bool refresh = false, bool tower_progress = false) { this.name = "btl/com"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); if (refresh) { stringBuilder.Append("\"event\":1,"); } if (tower_progress) { stringBuilder.Append("\"is_tower\":1,"); } string body = stringBuilder.ToString(); if (!string.IsNullOrEmpty(body)) { body = body.Remove(body.Length - 1); } this.body = WebAPI.GetRequestString(body); this.callback = response; }
public ReqQuestBookmarkUpdate(IEnumerable <string> add, IEnumerable <string> delete, Network.ResponseCallback response) { this.name = "quest/favorite/set"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"inames\":{"); if (delete != null && delete.Count <string>() > 0) { stringBuilder.Append("\"del\":["); foreach (string str in delete) { stringBuilder.Append("\""); stringBuilder.Append(str); stringBuilder.Append("\","); } stringBuilder.Remove(stringBuilder.Length - 1, 1); stringBuilder.Append("]"); } if (add != null && add.Count <string>() > 0) { if (delete != null && delete.Count <string>() > 0) { stringBuilder.Append(","); } stringBuilder.Append("\"add\":["); foreach (string str in add) { stringBuilder.Append("\""); stringBuilder.Append(str); stringBuilder.Append("\","); } stringBuilder.Remove(stringBuilder.Length - 1, 1); stringBuilder.Append("]"); } stringBuilder.Append("}"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqMultiAreaRoomMake(string iname, string comment, string passCode, bool isPrivate, bool limit, int unitlv, bool clear, Vector2 location, Network.ResponseCallback response) { this.name = "btl/room/areaquest/make"; this.body = string.Empty; ReqMultiAreaRoomMake multiAreaRoomMake1 = this; multiAreaRoomMake1.body = multiAreaRoomMake1.body + "\"iname\":\"" + JsonEscape.Escape(iname) + "\""; ReqMultiAreaRoomMake multiAreaRoomMake2 = this; multiAreaRoomMake2.body = multiAreaRoomMake2.body + ",\"comment\":\"" + JsonEscape.Escape(comment) + "\""; ReqMultiAreaRoomMake multiAreaRoomMake3 = this; multiAreaRoomMake3.body = multiAreaRoomMake3.body + ",\"pwd\":\"" + JsonEscape.Escape(passCode) + "\""; ReqMultiAreaRoomMake multiAreaRoomMake4 = this; multiAreaRoomMake4.body = multiAreaRoomMake4.body + ",\"private\":" + (object)(!isPrivate ? 0 : 1); ReqMultiAreaRoomMake multiAreaRoomMake5 = this; multiAreaRoomMake5.body = multiAreaRoomMake5.body + ",\"req_at\":" + (object)Network.GetServerTime(); ReqMultiAreaRoomMake multiAreaRoomMake6 = this; multiAreaRoomMake6.body = multiAreaRoomMake6.body + ",\"limit\":" + (object)(!limit ? 0 : 1); ReqMultiAreaRoomMake multiAreaRoomMake7 = this; multiAreaRoomMake7.body = multiAreaRoomMake7.body + ",\"unitlv\":" + (object)unitlv; ReqMultiAreaRoomMake multiAreaRoomMake8 = this; multiAreaRoomMake8.body = multiAreaRoomMake8.body + ",\"clear\":" + (object)(!clear ? 0 : 1); this.body += ",\"location\":{"; ReqMultiAreaRoomMake multiAreaRoomMake9 = this; multiAreaRoomMake9.body = multiAreaRoomMake9.body + "\"lat\":" + (object)(float)location.x + ","; ReqMultiAreaRoomMake multiAreaRoomMake10 = this; multiAreaRoomMake10.body = multiAreaRoomMake10.body + "\"lng\":" + (object)(float)location.y + "}"; this.body = WebAPI.GetRequestString(this.body); this.callback = response; }
public ReqVersus(string iname, int plid, int seat, string uid, Network.ResponseCallback response, VERSUS_TYPE type) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "vs/" + type.ToString().ToLower() + "match/req"; stringBuilder.Append("\"iname\":\""); stringBuilder.Append("QE_VS_TEST_00"); stringBuilder.Append("\","); stringBuilder.Append("\"token\":\""); stringBuilder.Append(JsonEscape.Escape(GlobalVars.SelectedMultiPlayRoomName)); stringBuilder.Append("\","); stringBuilder.Append("\"plid\":\""); stringBuilder.Append(plid); stringBuilder.Append("\","); stringBuilder.Append("\"seat\":\""); stringBuilder.Append(seat); stringBuilder.Append("\","); stringBuilder.Append("\"uid\":\""); stringBuilder.Append(uid); stringBuilder.Append("\""); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqRanking(string[] inames, Network.ResponseCallback response) { this.name = "btl/usedunit/multiple"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"inames\":["); for (int index = 0; index < inames.Length; ++index) { stringBuilder.Append("\""); stringBuilder.Append(JsonEscape.Escape(inames[index])); if (index == inames.Length - 1) { stringBuilder.Append("\"]"); } else { stringBuilder.Append("\","); } } this.body = stringBuilder.ToString(); this.body = WebAPI.GetRequestString(this.body); this.callback = response; }