Example #1
0
        public void WriteTo(RawData data)
        {
            if (string.IsNullOrEmpty(Message))
                return;

            data.WriteByte((byte)Type);
            data.WriteString(Message);
        }
Example #2
0
        public void WriteTo(RawData data)
        {
            if (_configType == ConfigStringType.Bad)
                return;

            data.WriteByte((byte)Type);
            data.WriteShort((short) ((short)ConfigType + SubCode));
            data.WriteString(Message);
        }