diff --git a/sessionUtils/sessionTypes.go b/sessionUtils/sessionTypes.go index 88d7408..8c762ce 100644 --- a/sessionUtils/sessionTypes.go +++ b/sessionUtils/sessionTypes.go @@ -2,15 +2,18 @@ package sessionUtils import ( "time" + + "git.gregbrzezinski.com/Skirda/skirdaGoBackend/skirdagoutils/gameUtils" ) type Session struct { - GameId string - Icon string - Title string - Status string - Version string - Expires time.Time + GameId string + Icon string + Title string + Status string + Version string + Expires time.Time + Arguments []gameUtils.Argument } type JSSessionInterface struct { diff --git a/sessionUtils/sessionUtils.go b/sessionUtils/sessionUtils.go index 9a75c42..8b4b4f8 100644 --- a/sessionUtils/sessionUtils.go +++ b/sessionUtils/sessionUtils.go @@ -3,6 +3,8 @@ package sessionUtils import ( "encoding/json" "time" + + "git.gregbrzezinski.com/Skirda/skirdaGoBackend/skirdagoutils/gameUtils" ) func ConvertServerSessionsToJSON(s Session) []byte { @@ -14,14 +16,22 @@ func ConvertServerSessionsToJSON(s Session) []byte { var FakeSessions = []Session{ { GameId: "garrysmod", - Title: "Test 1", + Icon: "", + Title: "Regular Skirda Gmod server", Status: "Super fake session", + Version: "", Expires: time.Time{}, + Arguments: []gameUtils.Argument{ + { + Body: "+connect", + Value: "127.0.0.1:27015", + }, + }, }, { - GameId: "beamng", - Title: "Test 2", - Status: "Super fake session 2", + GameId: "half-lide-1", + Title: "Half-Life 1 МЯСО", + Status: "Retro shit", Expires: time.Time{}, }, {