public void SendTutorialBit(TUTORIAL_MENU_BIT bit, Action <bool> call_back = null) { if (!TutorialStep.HasAllTutorialCompleted()) { if (call_back != null) { call_back(false); } } else if (CheckTutorialBit(bit)) { if (call_back != null) { call_back(true); } } else { UserStatusTutorialModel.RequestSendForm requestSendForm = new UserStatusTutorialModel.RequestSendForm(); requestSendForm.bit = (int)bit; Protocol.Send(UserStatusTutorialModel.URL, requestSendForm, delegate(UserStatusTutorialModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); if (call_back != null) { call_back(obj); } }, string.Empty); } }
public void SendGetMessageDetailList(int user_id, int page, Action <bool> callback) { FriendMessageDetailListModel.RequestSendForm requestSendForm = new FriendMessageDetailListModel.RequestSendForm(); requestSendForm.userId = user_id; requestSendForm.page = page; if (talkUser == null || talkUser.userId != user_id) { talkUser = null; messageDetailList.Clear(); } Protocol.Send(FriendMessageDetailListModel.URL, requestSendForm, delegate(FriendMessageDetailListModel ret) { bool flag = ErrorCodeChecker.IsSuccess(ret.Error); if (flag) { messagePageMax = ret.result.pageNumMax; AddMessageDetailList(ret.result.message); FriendMessageUserListModel.MessageUserInfo messageUserInfo = recvMessageUserList.messageUser.Find((FriendMessageUserListModel.MessageUserInfo user) => user.userId == user_id); if (messageUserInfo != null) { talkUser = messageUserInfo; } } callback(flag); }, string.Empty); }
public void SendFieldCharaList(Action <bool, List <FriendCharaInfo> > call_back) { Protocol.Send(FieldCharaListModel.URL, delegate(FieldCharaListModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); call_back(arg, ret.result); }, string.Empty); }
public void SendDebutResetGrade(Action <bool> call_back) { Protocol.Send(DebugResetGradeModel.URL, delegate(DebugResetGradeModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendClanChatLog(Action <bool, GuildChatModel> callback) { Protocol.Send(GuildChatModel.URL, delegate(GuildChatModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); callback(arg, ret); }, string.Empty); }
public void SendClanChatOnlineStatus(Action <bool, List <GuildMemberChatStatus> > callback) { Protocol.Send(GuildChatOnlineStatusModel.URL, delegate(GuildChatOnlineStatusModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); callback(arg, ret.result.online); }, string.Empty); }
public void GetAllPinData(Action <bool, GuildGetPinModel> callback) { Protocol.Send(GuildGetPinModel.URL, delegate(GuildGetPinModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); callback(arg, ret); }, string.Empty); }
public void SendDonateFobbidenList(Action <bool, List <int> > callback) { Protocol.Send(GuildDonate.GuildDonateFobbidenModel.URL, delegate(GuildDonate.GuildDonateFobbidenModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); callback(arg, ret.result.array); }, string.Empty); }
public void SendDonateReceive(Action <bool> callback) { Protocol.Send(GuildDonate.GuildDonateReceiveModel.URL, delegate(GuildDonate.GuildDonateReceiveModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); callback(obj); }, string.Empty); }
public void SendDebugSetLv(int lv, Action <bool> call_back) { DebugSetLvModel.RequestSendForm requestSendForm = new DebugSetLvModel.RequestSendForm(); requestSendForm.lv = lv; Protocol.Send(DebugSetLvModel.URL, requestSendForm, delegate(DebugSetLvModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendOpinionMessage(string msg, Action <bool> call_back) { OpinionPostModel.RequestSendForm requestSendForm = new OpinionPostModel.RequestSendForm(); requestSendForm.msg = msg; Protocol.Send(OpinionPostModel.URL, requestSendForm, delegate(OpinionPostModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendFieldContinue(Action <bool, Error> call_back) { FieldContinueModel.RequestSendForm requestSendForm = new FieldContinueModel.RequestSendForm(); requestSendForm.crystalCL = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.Crystal; Protocol.Send(FieldContinueModel.URL, requestSendForm, delegate(FieldContinueModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); call_back(arg, ret.Error); }, string.Empty); }
public void SendInventoryUseItem(string uid, Action <bool> call_back) { InventoryUseItemModel.RequestSendForm requestSendForm = new InventoryUseItemModel.RequestSendForm(); requestSendForm.uid = uid; Protocol.Send(InventoryUseItemModel.URL, requestSendForm, delegate(InventoryUseItemModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendRequestStatistic(int clan_id, Action <bool, GuildStatisticInfo> callback) { GuildStatisticModel.Form form = new GuildStatisticModel.Form(); form.clanId = clan_id; Protocol.Send(GuildStatisticModel.URL, form, delegate(GuildStatisticModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); callback(arg, ret.result); }, string.Empty); }
public void SendGuildRequestRetire(Action <bool> call_back) { GuildRequestRetireModel.RequestSendForm requestSendForm = new GuildRequestRetireModel.RequestSendForm(); requestSendForm.slotNo = selectedItem.slotNo; Protocol.Send(GuildRequestRetireModel.URL, requestSendForm, delegate(GuildRequestRetireModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendFieldQuestOpenPortal(int portalId, Action <bool, Error> call_back) { FieldQuestOpenPortalModel.RequestSendForm requestSendForm = new FieldQuestOpenPortalModel.RequestSendForm(); requestSendForm.portalId = portalId; Protocol.Send(FieldQuestOpenPortalModel.URL, requestSendForm, delegate(FieldQuestOpenPortalModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); call_back(arg, ret.Error); }, string.Empty); }
public void SendFieldGather(int pointId, Action <bool, FieldGatherRewardList> call_back) { FieldGatherModel.RequestSendForm requestSendForm = new FieldGatherModel.RequestSendForm(); requestSendForm.pId = pointId; Protocol.Send(FieldGatherModel.URL, requestSendForm, delegate(FieldGatherModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); call_back(arg, ret.result.reward); }, string.Empty); }
public void SendDonateInviteList(int donate_id, Action <bool, GuildDonate.GuildDonateInviteListModel> callback) { GuildDonate.GuildDonateInviteListModel.Form form = new GuildDonate.GuildDonateInviteListModel.Form(); form.id = donate_id; Protocol.Send(GuildDonate.GuildDonateInviteListModel.URL, form, delegate(GuildDonate.GuildDonateInviteListModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); callback(arg, ret); }, string.Empty); }
public void SendDebugAddPointShopPoint(int pointShopId, int addPoint, Action <bool> call_back) { DebugAddPointShopPointModel.RequestSendForm requestSendForm = new DebugAddPointShopPointModel.RequestSendForm(); requestSendForm.point = addPoint; requestSendForm.pointShopId = pointShopId; Protocol.Send(DebugAddPointShopPointModel.URL, requestSendForm, delegate(DebugAddPointShopPointModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendDonateSend(int donateId, int quatity, Action <bool> callback) { GuildDonate.GuildDonateSendModel.Form form = new GuildDonate.GuildDonateSendModel.Form(); form.id = donateId; form.quantity = quatity; Protocol.Send(GuildDonate.GuildDonateSendModel.URL, form, delegate(GuildDonate.GuildDonateSendModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); callback(obj); }, string.Empty); }
public void SendDebugSetEquipTargetNum(int targetNum, int collectionNum, Action <bool> call_back) { DebugSetEquipTargetNumModel.RequestSendForm requestSendForm = new DebugSetEquipTargetNumModel.RequestSendForm(); requestSendForm.targetNum = targetNum; requestSendForm.collectionNum = collectionNum; Protocol.Send(DebugSetEquipTargetNumModel.URL, requestSendForm, delegate(DebugSetEquipTargetNumModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendDebugSetEquipCollection(string obtained, int on, Action <bool> call_back) { DebugSetEquipCollectionModel.RequestSendForm requestSendForm = new DebugSetEquipCollectionModel.RequestSendForm(); requestSendForm.obtained = obtained; requestSendForm.on = on; Protocol.Send(DebugSetEquipCollectionModel.URL, requestSendForm, delegate(DebugSetEquipCollectionModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendAppReviewInfo(int starValue, int buttonNum, Action <bool> call_back) { AppReviewInfoModel.RequestSendForm requestSendForm = new AppReviewInfoModel.RequestSendForm(); requestSendForm.starValue = starValue; requestSendForm.replyAction = buttonNum; Protocol.Send(AppReviewInfoModel.URL, requestSendForm, delegate(AppReviewInfoModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendPrivateClanChatLog(int to, Action <bool, GuildPrivateChatModel> callback) { GuildPrivateChatModel.SendForm sendForm = new GuildPrivateChatModel.SendForm(); sendForm.toUserId = to; GuildPrivateChatModel.SendForm post_data = sendForm; Protocol.Send(GuildPrivateChatModel.URL, post_data, delegate(GuildPrivateChatModel ret) { bool arg = ErrorCodeChecker.IsSuccess(ret.Error); callback(arg, ret); }, string.Empty); }
public void SendDebugAppearFieldGather(int pointId, string appear, Action <bool> call_back) { DebugAppearFieldGatherModel.RequestSendForm requestSendForm = new DebugAppearFieldGatherModel.RequestSendForm(); requestSendForm.pId = pointId; requestSendForm.appear = appear; Protocol.Send(DebugAppearFieldGatherModel.URL, requestSendForm, delegate(DebugAppearFieldGatherModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendDebugSetTutorial(int step, string bit, Action <bool> call_back) { DebugSetTutorialModel.RequestSendForm requestSendForm = new DebugSetTutorialModel.RequestSendForm(); requestSendForm.step = step; requestSendForm.bit = bit; Protocol.Send(DebugSetTutorialModel.URL, requestSendForm, delegate(DebugSetTutorialModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendAlive(Action <bool> call_back = null) { MonoBehaviourSingleton <NetworkManager> .I.Request(StatusAliveModel.URL, delegate(StatusAliveModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); if (call_back != null) { call_back(obj); } }, string.Empty, string.Empty); }
public void SendDebugSetGrade(int fieldGrade, int questGrade, Action <bool> call_back) { DebugSetGradeModel.RequestSendForm requestSendForm = new DebugSetGradeModel.RequestSendForm(); requestSendForm.fg = fieldGrade; requestSendForm.qg = questGrade; Protocol.Send(DebugSetGradeModel.URL, requestSendForm, delegate(DebugSetGradeModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }
public void SendDonateInvite(int id, int user_id, Action <bool> callback) { GuildDonate.GuildDonateInviteModel.Form form = new GuildDonate.GuildDonateInviteModel.Form(); form.userId = user_id; form.id = id; Protocol.Send(GuildDonate.GuildDonateInviteModel.URL, form, delegate(GuildDonate.GuildDonateInviteModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); callback(obj); }, string.Empty); }
public void SendGuildRequestExtend(Action <bool> call_back) { GuildRequestExtendModel.RequestSendForm requestSendForm = new GuildRequestExtendModel.RequestSendForm(); requestSendForm.slotNo = selectedItem.slotNo; requestSendForm.crystalCL = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.crystal; Protocol.Send(GuildRequestExtendModel.URL, requestSendForm, delegate(GuildRequestExtendModel ret) { bool obj = ErrorCodeChecker.IsSuccess(ret.Error); call_back(obj); }, string.Empty); }