30 lines
659 B
Go
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"`
|
|
}
|