protected override void OnGetMsg(MobaMessage msg) { base.DebugMessage = ((base.LastError != 0) ? "===>天赋的信息获取失败" : "===>天赋的信息获取成功"); if (msg != null) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaMasterCode mobaMasterCode = MVC_MessageManager.NotifyModel_to_Master((ClientMsg)msg.ID); base.LastMsgType = (int)mobaMasterCode; MobaMasterCode mobaMasterCode2 = mobaMasterCode; if (mobaMasterCode2 == MobaMasterCode.UpgradeUrl) { this.UpgradeUrl(operationResponse); } } } base.Valid = (base.LastError == 0 && null != base.Data); base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { MobaMasterCode mobaMasterCode = MVC_MessageManager.NotifyModel_to_Master((ClientMsg)msg.ID); MobaMasterCode mobaMasterCode2 = mobaMasterCode; switch (mobaMasterCode2) { case MobaMasterCode.Login: this.OnGetMsg_MasterCode_Login(msg); goto IL_82; case MobaMasterCode.HulaiLogin: case MobaMasterCode.LoginOut: case MobaMasterCode.GuestUpgradeToOfficial: IL_2E: if (mobaMasterCode2 == MobaMasterCode.Register) { this.OnGetMsg_MasterCode_Register(msg); goto IL_82; } if (mobaMasterCode2 != MobaMasterCode.GuestUpgrade) { goto IL_82; } this.OnGetMsg_MasterCode_GuestUpgrade(msg); goto IL_82; case MobaMasterCode.LoginByPlatformUid: this.OnGetMsg_MasterCode_LoginByPlatformUid(msg); goto IL_82; case MobaMasterCode.LoginByChannelId: this.OnGetMsg_MasterCode_LoginByPlatformUid(msg); goto IL_82; } goto IL_2E; IL_82: base.TriggerListners(); }
public static MobaMessageType ClientMsg_to_RawCode(ClientMsg code, out int retCode) { MobaMessageType result = MobaMessageType.Client; retCode = 0; if (code >= ClientMsg.NotifyModel_master_begin && code < ClientMsg.NotifyModel_master_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Master(code); result = MobaMessageType.MasterCode; } else if (code >= ClientMsg.NotifyModel_game_begin && code < ClientMsg.NotifyModel_game_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Game(code); result = MobaMessageType.GameCode; } else if (code >= ClientMsg.NotifyModel_friend_begin && code < ClientMsg.NotifyModel_friend_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Friend(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyModel_chat_begin && code < ClientMsg.NotifyModel_chat_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Chat(code); result = MobaMessageType.ChatCode; } else if (code >= ClientMsg.NotifyModel_teamroom_begin && code < ClientMsg.NotifyModel_teamroom_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_TeamRoom(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyModel_userdata_begin && code < ClientMsg.NotifyModel_userdata_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_UserData(code); result = MobaMessageType.UserDataCode; } else if (code >= ClientMsg.NotifyView_master_begin && code < ClientMsg.NotifyView_game_begin) { retCode = (int)MVC_MessageManager.NotifyView_to_Master(code); result = MobaMessageType.MasterCode; } else if (code >= ClientMsg.NotifyView_game_begin && code < ClientMsg.NotifyView_game_end) { retCode = (int)MVC_MessageManager.NotifyView_to_Game(code); result = MobaMessageType.GameCode; } else if (code >= ClientMsg.NotifyView_friend_begin && code < ClientMsg.NotifyView_friend_end) { retCode = (int)MVC_MessageManager.NotifyView_to_Friend(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyView_chat_begin && code < ClientMsg.NotifyView_chat_end) { retCode = (int)MVC_MessageManager.NotifyView_to_Chat(code); result = MobaMessageType.ChatCode; } else if (code >= ClientMsg.NotifyView_teamroom_begin && code < ClientMsg.NotifyView_teamroom_end) { retCode = (int)MVC_MessageManager.NotifyView_to_TeamRoom(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyView_userdata_begin && code < ClientMsg.NotifyView_userdata_end) { retCode = (int)MVC_MessageManager.NotifyView_to_UserData(code); result = MobaMessageType.UserDataCode; } return(result); }