Add correct serialization for gateway user status

This commit is contained in:
Ske 2021-03-21 14:38:28 +01:00
parent ce790b13ae
commit c5f56cd7dd

View File

@ -1,11 +1,13 @@
using System.Collections.Generic; using System.Text.Json.Serialization;
using Myriad.Serialization;
using Myriad.Types; using Myriad.Types;
namespace Myriad.Gateway namespace Myriad.Gateway
{ {
public record GatewayStatusUpdate public record GatewayStatusUpdate
{ {
[JsonConverter(typeof(JsonSnakeCaseStringEnumConverter))]
public enum UserStatus public enum UserStatus
{ {
Online, Online,