2021-08-27 15:03:47 +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;
|
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
namespace Myriad.Gateway;
|
|
|
|
|
|
|
|
public record GatewayStatusUpdate
|
2020-12-22 12:15:26 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
[JsonConverter(typeof(JsonSnakeCaseStringEnumConverter))]
|
|
|
|
public enum UserStatus
|
2020-12-22 12:15:26 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
Online,
|
|
|
|
Dnd,
|
|
|
|
Idle,
|
|
|
|
Invisible,
|
|
|
|
Offline
|
2020-12-22 12:15:26 +00:00
|
|
|
}
|
2021-11-27 02:10:56 +00:00
|
|
|
|
|
|
|
public ulong? Since { get; init; }
|
2021-11-27 02:14:09 +00:00
|
|
|
public Activity[]? Activities { get; init; }
|
2021-11-27 02:10:56 +00:00
|
|
|
public UserStatus Status { get; init; }
|
|
|
|
public bool Afk { get; init; }
|
2020-12-22 12:15:26 +00:00
|
|
|
}
|