14
|
1 using System.Net.Sockets;
|
|
2 using MessagePack;
|
|
3
|
|
4 namespace Christie_net.datagear {
|
|
5 [MessagePackObject]
|
|
6 public class RemoteMessage {
|
|
7 [Key("type")]
|
|
8 public int type; // コマンドタイプ
|
|
9 [Key("fromDmgName")]
|
|
10 public string fromDmgName; // 送り元のDgmName REPLYの時に使用
|
|
11 [Key("key")]
|
|
12 public string key;
|
|
13 [Key("clazz")]
|
|
14 public string clazz;
|
34
|
15 [Key("data")]
|
|
16 public byte[] data;
|
14
|
17
|
|
18 public RemoteMessage(){} // for messagePack
|
|
19
|
34
|
20 public RemoteMessage(int type, string fromDmgName, string key, string clazz, byte[] data) {
|
14
|
21 this.type = type;
|
|
22 this.fromDmgName = fromDmgName;
|
|
23 this.key = key;
|
|
24 this.clazz = clazz;
|
34
|
25 this.data = data;
|
14
|
26 }
|
|
27 }
|
|
28 } |