PluralKit/Myriad/Gateway/Payloads/GatewayStatusUpdate.cs
2021-11-26 21:14:09 -05:00

24 lines
499 B
C#

using System.Text.Json.Serialization;
using Myriad.Serialization;
using Myriad.Types;
namespace Myriad.Gateway;
public record GatewayStatusUpdate
{
[JsonConverter(typeof(JsonSnakeCaseStringEnumConverter))]
public enum UserStatus
{
Online,
Dnd,
Idle,
Invisible,
Offline
}
public ulong? Since { get; init; }
public Activity[]? Activities { get; init; }
public UserStatus Status { get; init; }
public bool Afk { get; init; }
}