Skip to content

Account XP

AccountXP

C#
 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
public record EndProgress(
    [property: JsonPropertyName("Level")] long? Level,
    [property: JsonPropertyName("XP")] long? XP
);

public record History(
    [property: JsonPropertyName("ID")] string ID,
    [property: JsonPropertyName("MatchStart")] DateTime? MatchStart,
    [property: JsonPropertyName("StartProgress")] StartProgress StartProgress,
    [property: JsonPropertyName("EndProgress")] EndProgress EndProgress,
    [property: JsonPropertyName("XPDelta")] long? XPDelta,
    [property: JsonPropertyName("XPSources")] IReadOnlyList<XPSource> XPSources,
    [property: JsonPropertyName("XPMultipliers")] IReadOnlyList<object> XPMultipliers
);

public record Progress(
    [property: JsonPropertyName("Level")] long? Level,
    [property: JsonPropertyName("XP")] long? XP
);

public record AccountXP(
    [property: JsonPropertyName("Version")] long? Version,
    [property: JsonPropertyName("Subject")] string Subject,
    [property: JsonPropertyName("Progress")] Progress Progress,
    [property: JsonPropertyName("History")] IReadOnlyList<History> History,
    [property: JsonPropertyName("LastTimeGrantedFirstWin")] string LastTimeGrantedFirstWin,
    [property: JsonPropertyName("NextTimeFirstWinAvailable")] string NextTimeFirstWinAvailable
);

public record StartProgress(
    [property: JsonPropertyName("Level")] long? Level,
    [property: JsonPropertyName("XP")] long? XP
);

public record XPSource(
    [property: JsonPropertyName("ID")] string ID,
    [property: JsonPropertyName("Amount")] long? Amount
);