using System.Net.Sockets; using MessagePack; namespace Christie_net.datagear { [MessagePackObject] public class RemoteMessage { [Key("type")] public int type; // コマンドタイプ [Key("fromDmgName")] public string fromDmgName; // 送り元のDgmName REPLYの時に使用 [Key("key")] public string key; [Key("clazz")] public string clazz; [Key("data")] public byte[] data; public RemoteMessage(){} // for messagePack public RemoteMessage(int type, string fromDmgName, string key, string clazz, byte[] data) { this.type = type; this.fromDmgName = fromDmgName; this.key = key; this.clazz = clazz; this.data = data; } } }