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(); } }
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(); } }
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(); } }