13 lines
281 B
C#
13 lines
281 B
C#
|
using ExtraChat.Formatters;
|
||
|
using MessagePack;
|
||
|
|
||
|
namespace ExtraChat.Protocol;
|
||
|
|
||
|
[Serializable]
|
||
|
[MessagePackObject]
|
||
|
[MessagePackFormatter(typeof(UpdateKindFormatter))]
|
||
|
public abstract record UpdateKind {
|
||
|
[MessagePackObject]
|
||
|
public record Name(byte[] NewName) : UpdateKind;
|
||
|
}
|