public SessionStatusMessage(BufRef reader) : base(ProtocolMessageType.SessionStatus) { reader.Seek(4); if ((ProtocolMessageType)reader.Read8() != MessageType) { throw new ArgumentException("SessionStatusMessage( reader ) Wrong message type."); } SessionId = reader.Read16(); SessionState = (SessionStates)reader.Read8(); }