From c5f56cd7ddd63de02e3e055c445a092aeae07463 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 21 Mar 2021 14:38:28 +0100 Subject: [PATCH] Add correct serialization for gateway user status --- Myriad/Gateway/Payloads/GatewayStatusUpdate.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Myriad/Gateway/Payloads/GatewayStatusUpdate.cs b/Myriad/Gateway/Payloads/GatewayStatusUpdate.cs index 23ad01b7..7ca57090 100644 --- a/Myriad/Gateway/Payloads/GatewayStatusUpdate.cs +++ b/Myriad/Gateway/Payloads/GatewayStatusUpdate.cs @@ -1,11 +1,13 @@ -using System.Collections.Generic; +using System.Text.Json.Serialization; +using Myriad.Serialization; using Myriad.Types; namespace Myriad.Gateway { public record GatewayStatusUpdate { + [JsonConverter(typeof(JsonSnakeCaseStringEnumConverter))] public enum UserStatus { Online,