summary refs log tree commit diff
path: root/extra/admin-api/Models/Spacebar.Models.Gateway/SbWebsocketMeta.cs
blob: 6281426f0691c38f32990bb6a91035cdfd24049a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System.Text.Json.Serialization;

namespace Spacebar.Models.Gateway;

// TODO: move to interop
public class SbWebsocketMeta
{
    [JsonPropertyName("user_id")]
    public string UserId { get; set; } = string.Empty;

    [JsonPropertyName("session_id")]
    public string SessionId { get; set; } = string.Empty;

    [JsonPropertyName("accessToken")]
    public string AccessToken { get; set; } = string.Empty;

    [JsonPropertyName("encoding")]
    public string Encoding { get; set; } = "json";

    [JsonPropertyName("compress")]
    public string? Compress { get; set; }

    [JsonPropertyName("ipAddress")]
    public string? IpAddress { get; set; }

    [JsonPropertyName("userAgent")]
    public string? UserAgent { get; set; }

    [JsonPropertyName("fingerprint")]
    public string? Fingerprint { get; set; }

    [JsonPropertyName("shard_count")]
    public int? ShardCount { get; set; }

    [JsonPropertyName("shard_id")]
    public int? ShardId { get; set; }

    [JsonPropertyName("intents")]
    public GatewayIntentFlags Intents { get; set; } = default!;

    [JsonPropertyName("sequence")]
    public long Sequence { get; set; }

    [JsonPropertyName("capabilities")]
    public GatewayCapabilityFlags? Capabilities { get; set; }

    [JsonPropertyName("large_threshold")]
    public int LargeThreshold { get; set; }

    [JsonPropertyName("qos")]
    public QoSPayload? Qos { get; set; }
}