Beispiel #1
0
        public byte[] ToBytes()
        {
            var msgpack = new SimpleMsgPack.MsgPack();

            msgpack.ForcePathObject("RoomNumber").AsInteger = RoomNumber;
            byte[] packData = msgpack.Encode2Bytes();
            return(packData);
        }
Beispiel #2
0
        public byte[] ToBytes()
        {
            var msgpack = new SimpleMsgPack.MsgPack();

            msgpack.ForcePathObject("Msg").AsString = Msg;
            byte[] packData = msgpack.Encode2Bytes();
            return(packData);
        }