public void SendMailReadC2S(long emailId, MailItem item, EmailInfo info) { currentMailItem = item; currentMailInfo = info; ReadEmailC2S message = new ReadEmailC2S(); message.emailId = emailId; message.emailType = EmailType.FriendEmail; byte[] data = ProtobufUtils.Serialize(message); NetworkManager.SendRequest(ServerType.SocialServer, MsgCode.EmailReadMessage, data); }
private void ClickMailItem(Data.EmailInfo mailInfo, MailItem item) { controller.SendMailReadC2S(mailInfo.emailId, item, mailInfo); UIManager.Instance.GetUIByType(UIType.MailPopUpUI, (ViewBase ui, System.Object param) => { (ui as MailPopUpView).OnEnterMailPopUp(mailInfo); }); }
private void OnCreateItem(MailItem item) { item.onClickMailCallBack = ClickMailItem; }