2021-03-21 13:38:28 +00:00
|
|
|
|
using System.Text.Json.Serialization;
|
2020-12-22 12:15:26 +00:00
|
|
|
|
|
2021-03-21 13:38:28 +00:00
|
|
|
|
using Myriad.Serialization;
|
2020-12-22 12:15:26 +00:00
|
|
|
|
using Myriad.Types;
|
|
|
|
|
|
|
|
|
|
namespace Myriad.Gateway
|
|
|
|
|
{
|
|
|
|
|
public record GatewayStatusUpdate
|
|
|
|
|
{
|
2021-03-21 13:38:28 +00:00
|
|
|
|
[JsonConverter(typeof(JsonSnakeCaseStringEnumConverter))]
|
2020-12-22 12:15:26 +00:00
|
|
|
|
public enum UserStatus
|
|
|
|
|
{
|
|
|
|
|
Online,
|
|
|
|
|
Dnd,
|
|
|
|
|
Idle,
|
|
|
|
|
Invisible,
|
|
|
|
|
Offline
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ulong? Since { get; init; }
|
|
|
|
|
public ActivityPartial[]? Activities { get; init; }
|
|
|
|
|
public UserStatus Status { get; init; }
|
|
|
|
|
public bool Afk { get; init; }
|
|
|
|
|
}
|
|
|
|
|
}
|