-
Notifications
You must be signed in to change notification settings - Fork 1
/
Payload.cs
32 lines (24 loc) · 909 Bytes
/
Payload.cs
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
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace SteamTokenDumper;
internal sealed class Payload
{
[JsonPropertyName("v")]
// ReSharper disable once ReplaceAutoPropertyWithComputedProperty
public uint Version { get; } = ApiClient.Version;
[JsonPropertyName("token")]
// ReSharper disable once ReplaceAutoPropertyWithComputedProperty
public string Token { get; } = ApiClient.Token;
[JsonPropertyName("steamid")]
public string SteamID { get; set; }
[JsonPropertyName("apps")]
public Dictionary<string, string> Apps { get; } = [];
[JsonPropertyName("subs")]
public Dictionary<string, string> Subs { get; } = [];
[JsonPropertyName("depots")]
public Dictionary<string, string> Depots { get; } = [];
}
[JsonSerializable(typeof(Payload))]
internal sealed partial class PayloadJsonContext : JsonSerializerContext
{
}