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

43 lines
773 B
Go

package gamesModels
type SteamGame struct {
GameId string //TODO: To UUID
SteamId string
Args []Argument
OptionalArgs []Argument
Assets GameInterfaceAssets
Platforms map[string]bool
}
type LocalGame struct {
GameId string
}
type GameInterfaceAssets struct {
Title string
Icon string
Description string
Backgrounds []GameInterfaceBackground
}
type GameInterfaceBackground struct {
File string
}
type Games struct { //TODO: to domain
SteamGames []SteamGame
LocalGames []LocalGame
}
type JSGameInterface struct {
GameID string `json:"gameId"`
Title string `json:"title"`
Icon string `json:"icon"`
Description string `json:"description"`
}
type Argument struct {
Body string
Value string
}