ExtraChat/client/ExtraChat/Protocol/UpdateKind.cs

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;
}