-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPayloadDump.cs
More file actions
21 lines (16 loc) · 732 Bytes
/
PayloadDump.cs
File metadata and controls
21 lines (16 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Collections.Immutable;
using System.Text.Json.Serialization;
namespace SteamTokenDumper;
internal sealed class PayloadDump(Payload payload)
{
[JsonPropertyName("Apps")]
public ImmutableSortedDictionary<string, string> Apps { get; } = payload.Apps.ToImmutableSortedDictionary();
[JsonPropertyName("Packages")]
public ImmutableSortedDictionary<string, string> Packages { get; } = payload.Subs.ToImmutableSortedDictionary();
[JsonPropertyName("Depots")]
public ImmutableSortedDictionary<string, string> Depots { get; } = payload.Depots.ToImmutableSortedDictionary();
}
[JsonSerializable(typeof(PayloadDump))]
internal sealed partial class PayloadDumpJsonContext : JsonSerializerContext
{
}