28 lines
542 B
Go
28 lines
542 B
Go
package distribution
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Session struct {
|
|
SessionId string
|
|
GameId string
|
|
Assets GameInterfaceAssets
|
|
Expires time.Time
|
|
Arguments []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"`
|
|
}
|