model

package
v0.0.0-...-a78adbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Block

type Block struct {
	Type   string  `json:"type"`
	Title  string  `json:"title"`
	Filter string  `json:"filter"`
	Items  []*Game `json:"items,omitempty"`
}

type Covers

type Covers struct {
	WideSlider      *Image `json:"wideSlider,omitempty"`
	Vertical        *Image `json:"vertical,omitempty"`
	Horizontal      *Image `json:"horizontal,omitempty"`
	HorizontalSmall *Image `json:"horizontalSmall,omitempty"`
	LargeSingle     *Image `json:"largeSingle,omitempty"`
	Catalog         *Image `json:"catalog,omitempty"`
	Description     *Image `json:"description,omitempty"`
}

type Currency

type Currency string
const (
	CurrencyUsd Currency = "USD"
	CurrencyEur Currency = "EUR"
	CurrencyRub Currency = "RUB"
	CurrencyBtc Currency = "BTC"
)

func (Currency) IsValid

func (e Currency) IsValid() bool

func (Currency) MarshalGQL

func (e Currency) MarshalGQL(w io.Writer)

func (Currency) String

func (e Currency) String() string

func (*Currency) UnmarshalGQL

func (e *Currency) UnmarshalGQL(v interface{}) error

type Developer

type Developer struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Document

type Document struct {
	ID       int          `json:"id"`
	Title    string       `json:"title"`
	Text     string       `json:"text"`
	Type     DocumentType `json:"type"`
	Language string       `json:"language"`
	SignedAt *string      `json:"signedAt,omitempty"`
}

type DocumentType

type DocumentType string
const (
	DocumentTypeLicense       DocumentType = "license"
	DocumentTypeGameRules     DocumentType = "game_rules"
	DocumentTypePrivacyPolicy DocumentType = "privacy_policy"
)

func (DocumentType) IsValid

func (e DocumentType) IsValid() bool

func (DocumentType) MarshalGQL

func (e DocumentType) MarshalGQL(w io.Writer)

func (DocumentType) String

func (e DocumentType) String() string

func (*DocumentType) UnmarshalGQL

func (e *DocumentType) UnmarshalGQL(v interface{}) error

type DocumentsByUserRequest

type DocumentsByUserRequest struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}

type Feature

type Feature struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Icon string `json:"icon"`
}

type Game

type Game struct {
	ID           string                `json:"id"`
	Type         GameType              `json:"type"`
	Slug         string                `json:"slug"`
	Title        string                `json:"title"`
	Summary      string                `json:"summary"`
	Description  string                `json:"description"`
	Developers   []*Developer          `json:"developers,omitempty"`
	Publishers   []*Publisher          `json:"publishers,omitempty"`
	ReleaseDate  string                `json:"releaseDate"`
	License      string                `json:"license"`
	Ranking      *string               `json:"ranking,omitempty"`
	Genres       []*Genre              `json:"genres,omitempty"`
	Tags         []*Tag                `json:"tags,omitempty"`
	Features     []*Feature            `json:"features,omitempty"`
	Languages    []*Language           `json:"languages,omitempty"`
	SocialLinks  []*SocialLink         `json:"socialLinks,omitempty"`
	Platforms    []Platform            `json:"platforms"`
	Requirements []*SystemRequirements `json:"requirements,omitempty"`
	Media        *Media                `json:"media,omitempty"`
	Reviews      *Reviews              `json:"reviews,omitempty"`
	Ratings      []*Rating             `json:"ratings,omitempty"`
	Pricing      *Pricing              `json:"pricing,omitempty"`
}

type GameType

type GameType string
const (
	GameTypeUndefined GameType = "undefined"
	GameTypeWeb       GameType = "web"
	GameTypeDesktop   GameType = "desktop"
)

func (GameType) IsValid

func (e GameType) IsValid() bool

func (GameType) MarshalGQL

func (e GameType) MarshalGQL(w io.Writer)

func (GameType) String

func (e GameType) String() string

func (*GameType) UnmarshalGQL

func (e *GameType) UnmarshalGQL(v interface{}) error

type GamesByFilterRequest

type GamesByFilterRequest struct {
	Title       *string               `json:"title,omitempty"`
	Platforms   []string              `json:"platforms"`
	Genres      []int                 `json:"genres"`
	Features    []int                 `json:"features"`
	Languages   []string              `json:"languages"`
	SortType    *GamyByFilterSortType `json:"sortType,omitempty"`
	OnlyMyGames *bool                 `json:"onlyMyGames,omitempty"`
	Limit       *int                  `json:"limit,omitempty"`
	Offset      *int                  `json:"offset,omitempty"`
}

type GamyByFilterSortType

type GamyByFilterSortType string
const (
	GamyByFilterSortTypeReleaseDate GamyByFilterSortType = "releaseDate"
	GamyByFilterSortTypeBestSales   GamyByFilterSortType = "bestSales"
	GamyByFilterSortTypeAlphabet    GamyByFilterSortType = "alphabet"
)

func (GamyByFilterSortType) IsValid

func (e GamyByFilterSortType) IsValid() bool

func (GamyByFilterSortType) MarshalGQL

func (e GamyByFilterSortType) MarshalGQL(w io.Writer)

func (GamyByFilterSortType) String

func (e GamyByFilterSortType) String() string

func (*GamyByFilterSortType) UnmarshalGQL

func (e *GamyByFilterSortType) UnmarshalGQL(v interface{}) error

type Genre

type Genre struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Image

type Image struct {
	URL string `json:"url"`
}

type Language

type Language struct {
	Language  string `json:"language"`
	Interface bool   `json:"interface"`
	Audio     bool   `json:"audio"`
	Subtitles bool   `json:"subtitles"`
}

type LauncherClient

type LauncherClient struct {
	Version string `json:"Version"`
	URL     string `json:"URL"`
}

type LauncherPlatform

type LauncherPlatform string
const (
	LauncherPlatformUndefined LauncherPlatform = "undefined"
	LauncherPlatformWindows   LauncherPlatform = "windows"
	LauncherPlatformMacOs     LauncherPlatform = "macOS"
)

func (LauncherPlatform) IsValid

func (e LauncherPlatform) IsValid() bool

func (LauncherPlatform) MarshalGQL

func (e LauncherPlatform) MarshalGQL(w io.Writer)

func (LauncherPlatform) String

func (e LauncherPlatform) String() string

func (*LauncherPlatform) UnmarshalGQL

func (e *LauncherPlatform) UnmarshalGQL(v interface{}) error

type LinkedAccount

type LinkedAccount struct {
	Provider string `json:"provider"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Name     string `json:"name"`
}

type LocalizationLanguage

type LocalizationLanguage struct {
	ID   int    `json:"ID"`
	Code string `json:"Code"`
}

type Media

type Media struct {
	Covers      *Covers  `json:"covers,omitempty"`
	Screenshots []*Image `json:"screenshots,omitempty"`
	Trailers    []*Video `json:"trailers,omitempty"`
}

type Platform

type Platform string
const (
	PlatformUndefined Platform = "undefined"
	PlatformLinux     Platform = "linux"
	PlatformMacOs     Platform = "macOS"
	PlatformWindows   Platform = "windows"
	PlatformWeb       Platform = "web"
)

func (Platform) IsValid

func (e Platform) IsValid() bool

func (Platform) MarshalGQL

func (e Platform) MarshalGQL(w io.Writer)

func (Platform) String

func (e Platform) String() string

func (*Platform) UnmarshalGQL

func (e *Platform) UnmarshalGQL(v interface{}) error

type Post

type Post struct {
	ID          int    `json:"id"`
	Slug        string `json:"slug"`
	Cover       string `json:"cover"`
	Title       string `json:"title"`
	Summary     string `json:"summary"`
	Body        string `json:"body"`
	PublishedAt string `json:"published_at"`
}

type PostsByFilterRequest

type PostsByFilterRequest struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}

type Pricing

type Pricing struct {
	Price       float64 `json:"price"`
	BaseAmount  float64 `json:"baseAmount"`
	FinalAmount float64 `json:"finalAmount"`
	Grapheme    string  `json:"grapheme"`
	Currency    string  `json:"currency"`
	Discount    *int    `json:"discount,omitempty"`
}

type Publisher

type Publisher struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Rating

type Rating struct {
	Agency   string `json:"agency"`
	Rating   string `json:"rating"`
	ImageURL string `json:"imageURL"`
}

type RequirementsSet

type RequirementsSet struct {
	Os        string `json:"os"`
	CPU       string `json:"cpu"`
	DiskSpace int    `json:"diskSpace"`
	Gpu       string `json:"gpu"`
	RAM       int    `json:"ram"`
}

type Review

type Review struct {
	URL       string `json:"url"`
	Score     int    `json:"score"`
	Quote     string `json:"quote"`
	PressName string `json:"pressName"`
	Author    string `json:"author"`
}

type Reviews

type Reviews struct {
	Score  int       `json:"score"`
	Review []*Review `json:"review,omitempty"`
}
type SocialLink struct {
	Type string `json:"type"`
	URL  string `json:"url"`
}

type Storefront

type Storefront struct {
	Blocks []*Block `json:"blocks,omitempty"`
}

type SystemRequirements

type SystemRequirements struct {
	Platform    string           `json:"platform"`
	Minimal     *RequirementsSet `json:"minimal,omitempty"`
	Recommended *RequirementsSet `json:"recommended,omitempty"`
}

type Tag

type Tag struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type UpdateProfile

type UpdateProfile struct {
	FirstName *string       `json:"firstName,omitempty"`
	LastName  *string       `json:"lastName,omitempty"`
	Birthdate *string       `json:"birthdate,omitempty"`
	PhotoURL  *string       `json:"photoURL,omitempty"`
	Phone     *string       `json:"phone,omitempty"`
	Language  *UserLanguage `json:"language,omitempty"`
	Currency  *Currency     `json:"currency,omitempty"`
	Address1  *string       `json:"address1,omitempty"`
	Address2  *string       `json:"address2,omitempty"`
	City      *string       `json:"city,omitempty"`
	State     *string       `json:"state,omitempty"`
	Country   *string       `json:"country,omitempty"`
	Zip       *string       `json:"zip,omitempty"`
}

type User

type User struct {
	ID            int          `json:"id"`
	Status        int          `json:"status"`
	Username      string       `json:"username"`
	Email         string       `json:"email"`
	EmailVerified bool         `json:"email_verified"`
	Phone         string       `json:"phone"`
	PhoneVerified bool         `json:"phone_verified"`
	FirstName     string       `json:"firstName"`
	LastName      string       `json:"lastName"`
	Birthdate     string       `json:"birthdate"`
	PhotoURL      string       `json:"photoURL"`
	Language      UserLanguage `json:"language"`
	Currency      Currency     `json:"currency"`
	Address1      string       `json:"address1"`
	Address2      string       `json:"address2"`
	City          string       `json:"city"`
	State         string       `json:"state"`
	Country       string       `json:"country"`
	Zip           string       `json:"zip"`
}

type UserInfoRequest

type UserInfoRequest struct {
	Status     UserInfoRequestStatus `json:"status"`
	Expiration *time.Time            `json:"expiration,omitempty"`
}

type UserInfoRequestStatus

type UserInfoRequestStatus string
const (
	UserInfoRequestStatusNone       UserInfoRequestStatus = "None"
	UserInfoRequestStatusInProgress UserInfoRequestStatus = "InProgress"
	UserInfoRequestStatusReady      UserInfoRequestStatus = "Ready"
)

func (UserInfoRequestStatus) IsValid

func (e UserInfoRequestStatus) IsValid() bool

func (UserInfoRequestStatus) MarshalGQL

func (e UserInfoRequestStatus) MarshalGQL(w io.Writer)

func (UserInfoRequestStatus) String

func (e UserInfoRequestStatus) String() string

func (*UserInfoRequestStatus) UnmarshalGQL

func (e *UserInfoRequestStatus) UnmarshalGQL(v interface{}) error

type UserLanguage

type UserLanguage string
const (
	UserLanguageEnglish UserLanguage = "English"
	UserLanguageSpanish UserLanguage = "Spanish"
	UserLanguageRussian UserLanguage = "Russian"
)

func (UserLanguage) IsValid

func (e UserLanguage) IsValid() bool

func (UserLanguage) MarshalGQL

func (e UserLanguage) MarshalGQL(w io.Writer)

func (UserLanguage) String

func (e UserLanguage) String() string

func (*UserLanguage) UnmarshalGQL

func (e *UserLanguage) UnmarshalGQL(v interface{}) error

type Video

type Video struct {
	URL string `json:"url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL