コード例 #1
0
        private void ReadEmailHandel(object obj)
        {
            SEmailRead_SC Read = (SEmailRead_SC)obj;

            RefreshItem();
            RefreshUnReadCountLable();
        }
コード例 #2
0
    //接收到阅读邮件回应
    CommandCallbackType ReceiveMailRead(byte[] dataBuffer, int sorketID)
    {
        SEmailRead_SC sEmailRead_SC = SEmailRead_SC.ParsePackage(dataBuffer);

        EmailDataManager.Instance.EmailRead = sEmailRead_SC;
        EmailDataManager.Instance.UpdateCurrentEmailList_Read(sEmailRead_SC.llEmailID);
        UIEventManager.Instance.TriggerUIEvent(UIEventType.ReadEmail, sEmailRead_SC);
        return(CommandCallbackType.Continue);
    }
コード例 #3
0
    public static SEmailRead_SC ParsePackage(byte[] dataBuffer)
    {
        SEmailRead_SC sEmailRead_SC = new SEmailRead_SC();
        int           offset        = 0;

        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sEmailRead_SC.dwActorID);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sEmailRead_SC.llEmailID);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sEmailRead_SC.byEmailPage);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sEmailRead_SC.szEmailContext, 160);

        return(sEmailRead_SC);
    }