diff --git a/models/sessions/sessionTypes.go b/models/sessions/sessionTypes.go new file mode 100644 index 0000000..18e8baf --- /dev/null +++ b/models/sessions/sessionTypes.go @@ -0,0 +1,29 @@ +package sessionsModels + +import ( + "time" + + gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games" +) + +type Session struct { + SessionId string + GameId string + Assets gamesModels.GameInterfaceAssets + Expires time.Time + Arguments []gamesModels.Argument +} + +type Sessions struct { + Sessions []Session +} + +type JSSessionInterface struct { + GameID string `json:"gameId"` + SessionId string `json:"sessionId"` + Expires time.Time `json:"expires"` + Title string `json:"title"` + Icon string `json:"icon"` + Description string `json:"description"` + Backgrounds []string `json:"backgrounds"` +}