aboutsummaryrefslogtreecommitdiff
path: root/backend/models/models.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-01-18 22:12:38 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-01-18 22:12:38 +0300
commitdd39d8c86667c5446020458f8fe5171149d9ed5c (patch)
treef8e8d6a80d60e6da672cdd4cde4e43f72ec4e9bb /backend/models/models.go
parentadded delete demo from drive, also delete if an error is encountered while su... (diff)
downloadlphub-dd39d8c86667c5446020458f8fe5171149d9ed5c.tar.gz
lphub-dd39d8c86667c5446020458f8fe5171149d9ed5c.tar.bz2
lphub-dd39d8c86667c5446020458f8fe5171149d9ed5c.zip
feat: refresh/update user via steam (#30)
Diffstat (limited to 'backend/models/models.go')
-rw-r--r--backend/models/models.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/backend/models/models.go b/backend/models/models.go
index 5ce3ebf..2d14a06 100644
--- a/backend/models/models.go
+++ b/backend/models/models.go
@@ -87,6 +87,30 @@ type ScoreResponse struct {
87 Records any `json:"records"` 87 Records any `json:"records"`
88} 88}
89 89
90type PlayerSummaries struct {
91 SteamId string `json:"steamid"`
92 CommunityVisibilityState int `json:"communityvisibilitystate"`
93 ProfileState int `json:"profilestate"`
94 PersonaName string `json:"personaname"`
95 LastLogOff int `json:"lastlogoff"`
96 ProfileUrl string `json:"profileurl"`
97 Avatar string `json:"avatar"`
98 AvatarMedium string `json:"avatarmedium"`
99 AvatarFull string `json:"avatarfull"`
100 PersonaState int `json:"personastate"`
101
102 CommentPermission int `json:"commentpermission"`
103 RealName string `json:"realname"`
104 PrimaryClanId string `json:"primaryclanid"`
105 TimeCreated int `json:"timecreated"`
106 LocCountryCode string `json:"loccountrycode"`
107 LocStateCode string `json:"locstatecode"`
108 LocCityId int `json:"loccityid"`
109 GameId int `json:"gameid"`
110 GameExtraInfo string `json:"gameextrainfo"`
111 GameServerIp string `json:"gameserverip"`
112}
113
90func ErrorResponse(message string) Response { 114func ErrorResponse(message string) Response {
91 return Response{ 115 return Response{
92 Success: false, 116 Success: false,