//--------------------------------------------------------------------- async Task ICellPlayerProxy.s2sRecvMail(MailData mail_data) { }
//--------------------------------------------------------------------- public Task s2sProxyRecvMail(MailData mail_data) { return(TaskDone.Done); }
//------------------------------------------------------------------------- void s2cPlayerMailBoxResponse(PlayerMailBoxResponse playersecretary_response) { switch (playersecretary_response.id) { //case PlayerMailBoxResponseId.MailBoxInitInfo:// 响应请求邮箱初始化信息 // { // EbLog.Note("ClientPlayerMailBox.s2cPlayerSecretaryResponse() SetupSecreartyInitInfo"); // var secretary_init_info = EbTool.protobufDeserialize<MailBoxInitInfo>(playersecretary_response.data); // if (secretary_init_info.list_maildata != null) // { // ListMailData = secretary_init_info.list_maildata; // } // } // break; case PlayerMailBoxResponseId.MailOperate: // 响应请求邮件操作 { EbLog.Note("ClientPlayerMailBox.s2cPlayerSecretaryResponse() SecretaryMailOperate"); var mail_operate = EbTool.protobufDeserialize <MailOperate>(playersecretary_response.data); if (mail_operate.result == ProtocolResult.Success) { var list_maildata = Def.mPropListMailData.get(); MailData mail_data = list_maildata.Find((MailData mail) => { if (mail.mail_guid.Equals(mail_operate.mail_guid)) { return(true); } else { return(false); } }); if (mail_data != null) { switch (mail_operate.mail_operate_type) { case MailOperateType.Delete: list_maildata.Remove(mail_data); break; case MailOperateType.Read: mail_data.read = true; break; case MailOperateType.RecvAttachment: mail_data.recv_attachment = true; break; } } //UiMgr.Instance.getEventPublisherEntityToUi().genEvent<EvEntityMailInfoChange>().send(null); } } break; default: break; } }