sharedutils/models/sessions/sessionTypes.go

30 lines
641 B
Go
Raw Normal View History

2023-01-05 03:31:30 +00:00
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"`
}