blob: 2bb037cd8fa4bc079240f3bc10fc07162c53fa05 (
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
53
54
55
56
57
58
59
60
61
62
63
|
import { Pagination } from "./Pagination";
export interface UserShort {
steam_id: string;
user_name: string;
avatar_link: string;
};
export interface UserProfile {
profile: boolean;
steam_id: string;
user_name: string;
avatar_link: string;
country_code: string;
titles: UserProfileTitles[];
links: UserProfileLinks;
rankings: UserProfileRankings;
records: UserProfileRecords[];
pagination: Pagination;
};
interface UserProfileTitles {
name: string;
color: string;
};
interface UserProfileLinks {
p2sr: string;
steam: string;
youtube: string;
twitch: string;
};
interface UserProfileRankings {
overall: UserProfileRankingsDetail;
singleplayer: UserProfileRankingsDetail;
cooperative: UserProfileRankingsDetail;
};
interface UserProfileRecords {
game_id: number;
category_id: number;
map_id: number;
map_name: string;
map_wr_count: number;
placement: number;
scores: UserProfileRecordsScores[]
};
interface UserProfileRecordsScores {
record_id: number;
demo_id: string;
score_count: number;
score_time: number;
date: string;
};
interface UserProfileRankingsDetail {
rank: number;
completion_count: number;
completion_total: number;
};
|