Exemple #1
0
        protected virtual void SetObjectData(SerializationReader sr)
        {
            f_TimeStamp    = sr.ReadDateTime();
            f_MessageParts = sr.ReadList <MessagePartModel>();
            f_MessageType  = (MessageType)sr.ReadInt32();

            // backward compatibility with engines < 1.1
            if (sr.PeekChar() != -1)
            {
                ID = sr.ReadString();
            }
        }
Exemple #2
0
        protected override void SetObjectData(SerializationReader sr)
        {
            if (sr == null)
            {
                throw new ArgumentNullException("sr");
            }

            base.SetObjectData(sr);

            IsOp    = sr.ReadBoolean();
            IsVoice = sr.ReadBoolean();

            // backward compatibility
            if (sr.PeekChar() != -1)
            {
                IsOwner        = sr.ReadBoolean();
                IsChannelAdmin = sr.ReadBoolean();
                IsHalfop       = sr.ReadBoolean();
            }
        }
Exemple #3
0
        protected virtual void SetObjectData(SerializationReader sr)
        {
            f_TimeStamp    = sr.ReadDateTime();
            f_MessageParts = sr.ReadList<MessagePartModel>();
            f_MessageType  = (MessageType) sr.ReadInt32();

            // backward compatibility with engines < 1.1
            if (sr.PeekChar() != -1) {
                ID = sr.ReadString();
            }
        }