From 4b073d2cd58c172d33b796bafc7b93054bd7c1b7 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Fri, 28 Oct 2022 18:23:04 +0300 Subject: [PATCH] fields changes --- gameUtils/fakeGames.go | 4 ++-- gameUtils/gameTypes.go | 4 ++-- gameUtils/gameUtils.go | 2 +- sessionUtils/sessionTypes.go | 6 +++++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gameUtils/fakeGames.go b/gameUtils/fakeGames.go index dd93f0f..cad620f 100644 --- a/gameUtils/fakeGames.go +++ b/gameUtils/fakeGames.go @@ -7,7 +7,7 @@ var garrysmodGame = SteamGame{ Platforms: map[string]bool{"linux": true}, Assets: GameInterfaceAssets{ Title: "Garry's Mod", - Image: "gmod.png", + Icon: "icon.png", Description: "", }, } @@ -19,7 +19,7 @@ var openarena = SteamGame{ Args: []string{}, Assets: GameInterfaceAssets{ Title: "Open Arena", - Image: "openarena.jpg", + Icon: "icon.jpg", Description: "asdadasd", }, } diff --git a/gameUtils/gameTypes.go b/gameUtils/gameTypes.go index 6e8bc7b..5436b96 100644 --- a/gameUtils/gameTypes.go +++ b/gameUtils/gameTypes.go @@ -10,7 +10,7 @@ type SteamGame struct { type GameInterfaceAssets struct { Title string - Image string + Icon string Description string } @@ -21,6 +21,6 @@ type Games struct { type JSGameInterface struct { GameID string `json:"gameId"` Title string `json:"title"` - Image string `json:"image"` + Icon string `json:"icon"` Description string `json:"description"` } diff --git a/gameUtils/gameUtils.go b/gameUtils/gameUtils.go index d3be5bb..0be80be 100644 --- a/gameUtils/gameUtils.go +++ b/gameUtils/gameUtils.go @@ -28,7 +28,7 @@ func GetJSGameInterface(game SteamGame) JSGameInterface { newInterface := JSGameInterface{ GameID: game.GameId, Title: game.Assets.Title, - Image: game.Assets.Image, + Icon: game.Assets.Icon, Description: game.Assets.Description, } return newInterface diff --git a/sessionUtils/sessionTypes.go b/sessionUtils/sessionTypes.go index 5bdd18a..88d7408 100644 --- a/sessionUtils/sessionTypes.go +++ b/sessionUtils/sessionTypes.go @@ -5,8 +5,12 @@ import ( ) type Session struct { - Expires time.Time GameId string + Icon string + Title string + Status string + Version string + Expires time.Time } type JSSessionInterface struct {