sharedutils/models/sessions/sessionModels.go
2023-01-05 09:45:08 +03:00

30 lines
659 B
Go

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 { //TODO: to domain
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"`
}