|
using ExtraChat.Formatters;
|
|
using MessagePack;
|
|
|
|
namespace ExtraChat.Protocol;
|
|
|
|
[Serializable]
|
|
[MessagePackObject]
|
|
public class MessageRequest {
|
|
[Key(0)]
|
|
[MessagePackFormatter(typeof(BinaryUuidFormatter))]
|
|
public Guid Channel;
|
|
|
|
[Key(1)]
|
|
public byte[] Message;
|
|
}
|