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
|
|
|
|
}
|
|
|
|
|
2023-01-05 06:45:08 +00:00
|
|
|
type Sessions struct { //TODO: to domain
|
2023-01-05 03:31:30 +00:00
|
|
|
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"`
|
|
|
|
}
|