public ReqChatBlackList(int start_id, int limit, int exclude_id, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "chat/blacklist"; stringBuilder.Append("\"start_id\":" + start_id.ToString() + ","); stringBuilder.Append("\"limit\":" + limit.ToString() + ","); stringBuilder.Append("\"exclude_id\":" + exclude_id.ToString()); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqEventShopItemList(string shop_name, Network.ResponseCallback response) { this.name = "shop/event"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"shopName\":\""); stringBuilder.Append(shop_name); stringBuilder.Append("\""); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqTowerFloorReset(string tower_iname, string floor_iname, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "tower/floor/reset"; stringBuilder.Append(WebAPI.KeyValueToString(nameof(tower_iname), tower_iname)); stringBuilder.Append(","); stringBuilder.Append(WebAPI.KeyValueToString(nameof(floor_iname), floor_iname)); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqTowerRank(string qid, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "tower/ranking"; stringBuilder.Append("\"qid\":\""); stringBuilder.Append(qid); stringBuilder.Append("\""); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqArtifactSet(long iid_job, long iid_artifact, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iid_job\":"); stringBuilder.Append(iid_job); stringBuilder.Append(",\"iid_artifact\":"); stringBuilder.Append(iid_artifact); this.name = "unit/job/artifact/set"; this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqBtlComGps(Network.ResponseCallback response, Vector2 location) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "btl/com/areaquest"; stringBuilder.Append("\"location\":{"); stringBuilder.Append("\"lat\":" + (object)(float)location.x + ","); stringBuilder.Append("\"lng\":" + (object)(float)location.y); stringBuilder.Append("}"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public GpsGift(Vector2 location, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "mail/area"; stringBuilder.Append("\"location\":{"); stringBuilder.Append("\"lat\":" + (object)(float)location.x + ","); stringBuilder.Append("\"lng\":" + (object)(float)location.y); stringBuilder.Append("}"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqFavoriteConceptCard(long card_iid, bool is_favorite, Network.ResponseCallback response) { this.name = "unit/concept/favorite"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"concept_iid\":"); stringBuilder.Append(card_iid); stringBuilder.Append(","); stringBuilder.Append("\"is_favorite\":"); stringBuilder.Append(!is_favorite ? 0 : 1); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqTowerReward(short mid, short nid, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "expedition/reward"; stringBuilder.Append("\"mid\":"); stringBuilder.Append(mid); stringBuilder.Append(","); stringBuilder.Append("\"nid\":"); stringBuilder.Append(nid); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqVersusCpu(string iname, int deck_id, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "vs/com/req"; stringBuilder.Append("\"iname\":\""); stringBuilder.Append(JsonEscape.Escape(iname)); stringBuilder.Append("\","); stringBuilder.Append("\"deck_id\":"); stringBuilder.Append(deck_id); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqGAuthPasscode(string secretKey, string deviceID, Network.ResponseCallback response) { this.name = "gauth/passcode"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"secret_key\":\""); stringBuilder.Append(secretKey); stringBuilder.Append("\",\"device_id\":\""); stringBuilder.Append(deviceID); stringBuilder.Append("\""); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqHealAp(long iid, int num, Network.ResponseCallback response) { this.name = "item/addstm"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"iid\" : "); stringBuilder.Append(iid); stringBuilder.Append(","); stringBuilder.Append("\"num\" : "); stringBuilder.Append(num); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqJobRankupAll(long iid_unit, string iname_jobset, Network.ResponseCallback response) { this.name = "unit/job/equip/lvupall"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"uiid\":"); stringBuilder.Append(iid_unit); stringBuilder.Append(",\"jobset\":\""); stringBuilder.Append(iname_jobset); stringBuilder.Append("\""); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
private ReqSetConceptCard(long card_iid, long unit_iid, Network.ResponseCallback response) { this.name = "unit/concept/set"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"concept_iid\":"); stringBuilder.Append(card_iid); stringBuilder.Append(","); stringBuilder.Append("\"unit_iid\":"); stringBuilder.Append(unit_iid); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqMail(int page, bool isPeriod, bool isRead, Network.ResponseCallback response) { this.name = "mail"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append(this.MakeKeyValue(nameof(page), page)); stringBuilder.Append(","); stringBuilder.Append(this.MakeKeyValue(nameof(isPeriod), !isPeriod ? 0 : 1)); stringBuilder.Append(","); stringBuilder.Append(this.MakeKeyValue(nameof(isRead), !isRead ? 0 : 1)); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqTobiraEnhance(long unit_iid, TobiraParam.Category category, Network.ResponseCallback response) { this.name = "unit/door/lvup"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"unit_iid\":"); stringBuilder.Append(unit_iid); stringBuilder.Append(","); stringBuilder.Append("\"category\":"); stringBuilder.Append((int)category); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqQRCodeAccess(int campaign, string serial, Network.ResponseCallback response) { this.name = "qr/serial"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"campaign_id\":"); stringBuilder.Append(campaign); stringBuilder.Append(","); stringBuilder.Append("\"code\":\""); stringBuilder.Append(serial); stringBuilder.Append("\""); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqParty(Network.ResponseCallback response, bool needUpdateMultiRoom = false, bool ignoreEmpty = true, bool needUpdateMultiRoomMT = false) { 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) && index1 != 9) { 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!"); } else if (needUpdateMultiRoomMT) { stringBuilder.Append(",\"roomowner_mt\":1"); DebugUtility.Log("UpdateMultiTower!"); } this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqBtlComEnd(string req_fuid, int opp_rank, int my_rank, BtlResultTypes result, int[] beats, int[] itemSteals, int[] goldSteals, int[] missions, string[] fuid, Dictionary <OString, OInt> usedItems, Network.ResponseCallback response, BtlEndTypes apiType, string trophyprog = null, string bingoprog = null) { this.name = "btl/colo/exec"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"fuid\":\""); stringBuilder.Append(req_fuid); stringBuilder.Append("\""); stringBuilder.Append(",\"opp_rank\":"); stringBuilder.Append(opp_rank); stringBuilder.Append(",\"my_rank\":"); stringBuilder.Append(my_rank); this.body = WebAPI.GetRequestString(stringBuilder.ToString() + "," + this.makeBody(true, 0L, 0, result, beats, itemSteals, goldSteals, missions, fuid, usedItems, response, apiType, trophyprog, bingoprog, 0, (string)null)); this.callback = response; }
public ReqJobEquipV2(long iid_unit, string iname_jobset, long slot, 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); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public API_ReqQuestRankingParty(int schedule_id, RankingQuestType type, string quest_id, string uid, Network.ResponseCallback response) { this.name = "quest/ranking/party"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); FlowNode_ReqQuestRankingParty.API_ReqQuestRankingParty.AppendKeyValue(stringBuilder, nameof(schedule_id), schedule_id); stringBuilder.Append(","); FlowNode_ReqQuestRankingParty.API_ReqQuestRankingParty.AppendKeyValue(stringBuilder, nameof(type), (int)type); stringBuilder.Append(","); FlowNode_ReqQuestRankingParty.API_ReqQuestRankingParty.AppendKeyValue(stringBuilder, "iname", quest_id); stringBuilder.Append(","); FlowNode_ReqQuestRankingParty.API_ReqQuestRankingParty.AppendKeyValue(stringBuilder, "target_uid", uid); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqGAuthFgGDevice(string deviceID, string mail, string password, Network.ResponseCallback response) { this.name = "gauth/fggid/device"; StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"idfv\":\""); 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 HomeApi(bool isMultiPush, Network.ResponseCallback response) { this.name = "home"; if (isMultiPush) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"is_multi_push\":1"); this.body = WebAPI.GetRequestString(stringBuilder.ToString()); } else { this.body = WebAPI.GetRequestString((string)null); } this.callback = response; }
public ReqChatMessage(long start_id, int channel, int limit, long exclude_id, bool isMultiPush, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "chat/message"; stringBuilder.Append("\"start_id\":" + start_id.ToString() + ","); stringBuilder.Append("\"channel\":" + channel.ToString() + ","); 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 ReqLogin(Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); stringBuilder.Append("\"device\":\""); stringBuilder.Append(SystemInfo.get_deviceModel()); stringBuilder.Append("\","); string str = AssetManager.Format.ToPath().Replace("/", string.Empty); stringBuilder.Append("\"dlc\":\""); stringBuilder.Append(str); stringBuilder.Append("\""); this.name = "login"; this.body = WebAPI.GetRequestString(stringBuilder.ToString()); this.callback = response; }
public ReqBtlTowerComReq(string qid, string fid, PartyData partyIndex, Network.ResponseCallback response) { StringBuilder stringBuilder = WebAPI.GetStringBuilder(); this.name = "tower/btl/req"; stringBuilder.Append("\"qid\":\""); stringBuilder.Append(qid); stringBuilder.Append("\","); stringBuilder.Append("\"fid\":\""); stringBuilder.Append(fid); stringBuilder.Append("\","); stringBuilder.Append("\"fuid\":\""); stringBuilder.Append(GlobalVars.SelectedFriendID); stringBuilder.Append("\""); 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 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; }
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 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; }