Mercurial > hg > Database > Christie-sharp
view datagear/RemoteMessage.cs @ 34:1236da135f79
update
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 27 Apr 2021 22:57:14 +0900 |
parents | 277dd59bf1e2 |
children | 9217d14cc220 |
line wrap: on
line source
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; } } }