From dd39d8c86667c5446020458f8fe5171149d9ed5c Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Wed, 18 Jan 2023 22:12:38 +0300 Subject: feat: refresh/update user via steam (#30) --- backend/models/models.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'backend/models/models.go') 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 { Records any `json:"records"` } +type PlayerSummaries struct { + SteamId string `json:"steamid"` + CommunityVisibilityState int `json:"communityvisibilitystate"` + ProfileState int `json:"profilestate"` + PersonaName string `json:"personaname"` + LastLogOff int `json:"lastlogoff"` + ProfileUrl string `json:"profileurl"` + Avatar string `json:"avatar"` + AvatarMedium string `json:"avatarmedium"` + AvatarFull string `json:"avatarfull"` + PersonaState int `json:"personastate"` + + CommentPermission int `json:"commentpermission"` + RealName string `json:"realname"` + PrimaryClanId string `json:"primaryclanid"` + TimeCreated int `json:"timecreated"` + LocCountryCode string `json:"loccountrycode"` + LocStateCode string `json:"locstatecode"` + LocCityId int `json:"loccityid"` + GameId int `json:"gameid"` + GameExtraInfo string `json:"gameextrainfo"` + GameServerIp string `json:"gameserverip"` +} + func ErrorResponse(message string) Response { return Response{ Success: false, -- cgit v1.2.3