Ejemplo n.º 1
0
        //public override void merge(object o)
        //{
        //    Contact contact = o as Contact;
        //    if (0L != (contact.modify & 1L))
        //    {
        //        this._strUsrName = contact._strUsrName;
        //    }
        //    if (0L != (contact.modify & 4L))
        //    {
        //        this._strNickName = contact._strNickName;
        //    }
        //    if (0L != (contact.modify & 8L))
        //    {
        //        this._Uin = contact._Uin;
        //    }
        //    if (0L != (contact.modify & 0x10L))
        //    {
        //        this._strEmail = contact._strEmail;
        //    }
        //    if (0L != (contact.modify & 0x20L))
        //    {
        //        this._strMobile = contact._strMobile;
        //    }
        //    if (0L != (contact.modify & 0x40L))
        //    {
        //        this._nSex = contact._nSex;
        //    }
        //    if (0L != (contact.modify & 0x80L))
        //    {
        //        this._strPYInitial = contact._strPYInitial;
        //    }
        //    if (0L != (contact.modify & 0x100L))
        //    {
        //        this._strQuanPin = contact._strQuanPin;
        //    }
        //    if (0L != (contact.modify & 0x200L))
        //    {
        //        this._strHeadImg = contact._strHeadImg;
        //    }
        //    if (0L != (contact.modify & 0x400L))
        //    {
        //        this._nFlags = contact._nFlags;
        //    }
        //    if (0L != (contact.modify & 0x2000000L))
        //    {
        //        this._strSignature = contact._strSignature;
        //    }
        //    if (0L != (contact.modify & 0x800L))
        //    {
        //        this._strRemark = contact._strRemark;
        //    }
        //    if (0L != (contact.modify & 0x1000L))
        //    {
        //        this._strRemarkPYInitial = contact._strRemarkPYInitial;
        //    }
        //    if (0L != (contact.modify & 0x2000L))
        //    {
        //        this._strRemarkQuanPin = contact._strRemarkQuanPin;
        //    }
        //    if (0L != (contact.modify & 0x4000L))
        //    {
        //        this._nImgFlag = contact._nImgFlag;
        //    }
        //    if (0L != (contact.modify & 0x8000L))
        //    {
        //        this._nContactType = contact._nContactType;
        //    }
        //    if (0L != (contact.modify & 0x10000L))
        //    {
        //        this._nRoomInfoCount = contact._nRoomInfoCount;
        //    }
        //    if (0L != (contact.modify & 0x20000L))
        //    {
        //        this._strDomainList = contact._strDomainList;
        //    }
        //    if (0L != (contact.modify & 0x40000L))
        //    {
        //        this._nChatRoomNotify = contact._nChatRoomNotify;
        //    }
        //    if (0L != (contact.modify & 0x80000L))
        //    {
        //        this._nAddContactScene = contact._nAddContactScene;
        //    }
        //    if (0L != (contact.modify & 0x100000L))
        //    {
        //        this._nExtInfoSeq = contact._nExtInfoSeq;
        //    }
        //    if (0L != (contact.modify & 0x200000L))
        //    {
        //        this._nImgUpdateSeq = contact._nImgUpdateSeq;
        //    }
        //    if (0L != (contact.modify & 0x400000L))
        //    {
        //        this._strExtInfo = contact._strExtInfo;
        //    }
        //    if (0L != (contact.modify & 0x800000L))
        //    {
        //        this._strProvince = contact.strProvince;
        //    }
        //    if (0L != (contact.modify & 0x1000000L))
        //    {
        //        this._strCity = contact.strCity;
        //    }
        //    if (0L != (contact.modify & 0x2000000L))
        //    {
        //        this._strSignature = contact.strSignature;
        //    }
        //    if (0L != (contact.modify & 0x4000000L))
        //    {
        //        this._nPersonalCard = contact.nPersonalCard;
        //    }
        //    if (0L != (contact.modify & 0x8000000L))
        //    {
        //        this._nHasWeiXinHdHeadImg = contact.nHasWeiXinHdHeadImg;
        //    }
        //    if (0L != (contact.modify & 0x10000000L))
        //    {
        //        this._nVerifyFlag = contact.nVerifyFlag;
        //    }
        //    if (0L != (contact.modify & 0x20000000L))
        //    {
        //        this._strVerifyInfo = contact.strVerifyInfo;
        //    }
        //    if (0L != (contact.modify & -2147483648L))
        //    {
        //        this._strAlias = contact.strAlias;
        //    }
        //    if (0L != (contact.modify & 1L))
        //    {
        //        this._nSource = contact._nSource;
        //    }
        //    if (0L != (contact.modify & 2L))
        //    {
        //        this._pQQ = contact._pQQ;
        //    }
        //    if (0L != (contact.modify & 4L))
        //    {
        //        this._strCountry = contact.strCountry;
        //    }
        //    if (0L != (contact.modify & 8L))
        //    {
        //        this._strBigHeadImgUrl = contact._strBigHeadImgUrl;
        //    }
        //    if (0L != (contact.modify & 0x10L))
        //    {
        //        this._strSmallHeadImgUrl = contact._strSmallHeadImgUrl;
        //    }
        //    if (0L != (contact.modify & 0x40000000L))
        //    {
        //        this._bytesXmlBuf = contact._bytesXmlBuf;
        //        this._xmlData = null;
        //        this.serial = null;
        //    }
        //}

        private void unload()
        {
            if (this.serial != null)
            {
                this.bytesXmlBuf = StorageXml.saveToBuffer <ContactXmlDataSerial>(this.serial);
            }
        }
Ejemplo n.º 2
0
 private void unload()
 {
     if (this._xmlData != null)
     {
         this.bytesXmlData = StorageXml.saveToBuffer <MsgXmlData>(this._xmlData);
     }
 }
Ejemplo n.º 3
0
 private void load()
 {
     if (this._xmlData == null)
     {
         this._xmlData = StorageXml.loadFromBuffer <MsgXmlData>(this.bytesXmlData);
         if (this._xmlData == null)
         {
             this._xmlData = new MsgXmlData();
         }
     }
 }
Ejemplo n.º 4
0
 public void commentListFlush()
 {
     if ((this._commentList == null) || (this._commentList.list.Count <= 0))
     {
         this.bytesXmlCommnetList = null;
     }
     else
     {
         this.bytesXmlCommnetList = StorageXml.saveToBuffer <SnsCommentList>(this._commentList);
     }
 }
Ejemplo n.º 5
0
 public void blackListFlush()
 {
     if ((this._blackList == null) || (this._blackList.list.Count <= 0))
     {
         this.bytesXmlBlackList = null;
     }
     else
     {
         this.bytesXmlBlackList = StorageXml.saveToBuffer <SnsUserNameList>(this._blackList);
     }
 }
Ejemplo n.º 6
0
 public void groupListFlush()
 {
     if ((this._groupList == null) || (this._groupList.list.Count <= 0))
     {
         this.bytesXmlGroupList = null;
     }
     else
     {
         this.bytesXmlGroupList = StorageXml.saveToBuffer <SnsGroupList>(this._groupList);
     }
 }
Ejemplo n.º 7
0
 private void load()
 {
     if (this._xmlData == null)
     {
         this.serial = StorageXml.loadFromBuffer <ContactXmlDataSerial>(this.bytesXmlBuf);
         if (this.serial == null)
         {
             this.serial      = new ContactXmlDataSerial();
             this.serial.data = new ContactXmlData();
         }
         this._xmlData = this.serial.data;
     }
 }