99 lines
4.3 KiB
Go
99 lines
4.3 KiB
Go
|
package model
|
||
|
|
||
|
type IGDBGameDetail struct {
|
||
|
ID int `json:"id,omitempty"`
|
||
|
ParentGame int `json:"parent_game,omitempty"`
|
||
|
AgeRatings []int `json:"age_ratings,omitempty"`
|
||
|
AlternativeNames []struct {
|
||
|
Name string `json:"name,omitempty"`
|
||
|
} `json:"alternative_names,omitempty"`
|
||
|
Category int `json:"category,omitempty"`
|
||
|
Cover struct {
|
||
|
URL string `json:"url,omitempty"`
|
||
|
} `json:"cover,omitempty"`
|
||
|
CreatedAt int `json:"created_at,omitempty"`
|
||
|
ExternalGames []int `json:"external_games,omitempty"`
|
||
|
FirstReleaseDate int `json:"first_release_date,omitempty"`
|
||
|
Franchises []int `json:"franchises,omitempty"`
|
||
|
GameModes []int `json:"game_modes,omitempty"`
|
||
|
Genres []int `json:"genres,omitempty"`
|
||
|
InvolvedCompanies []struct {
|
||
|
Company int `json:"company,omitempty"`
|
||
|
Developer bool `json:"developer,omitempty"`
|
||
|
Publisher bool `json:"publisher,omitempty"`
|
||
|
} `json:"involved_companies,omitempty"`
|
||
|
Name string `json:"name,omitempty"`
|
||
|
Platforms []int `json:"platforms,omitempty"`
|
||
|
PlayerPerspectives []int `json:"player_perspectives,omitempty"`
|
||
|
Rating float64 `json:"rating,omitempty"`
|
||
|
RatingCount int `json:"rating_count,omitempty"`
|
||
|
ReleaseDates []int `json:"release_dates,omitempty"`
|
||
|
Screenshots []struct {
|
||
|
URL string `json:"url,omitempty"`
|
||
|
} `json:"screenshots,omitempty"`
|
||
|
SimilarGames []int `json:"similar_games,omitempty"`
|
||
|
Slug string `json:"slug,omitempty"`
|
||
|
Summary string `json:"summary,omitempty"`
|
||
|
Tags []int `json:"tags,omitempty"`
|
||
|
Themes []int `json:"themes,omitempty"`
|
||
|
TotalRating float64 `json:"total_rating,omitempty"`
|
||
|
TotalRatingCount int `json:"total_rating_count,omitempty"`
|
||
|
UpdatedAt int `json:"updated_at,omitempty"`
|
||
|
URL string `json:"url,omitempty"`
|
||
|
VersionParent int `json:"version_parent,omitempty"`
|
||
|
VersionTitle string `json:"version_title,omitempty"`
|
||
|
Checksum string `json:"checksum,omitempty"`
|
||
|
Websites []int `json:"websites,omitempty"`
|
||
|
GameLocalizations []int `json:"game_localizations,omitempty"`
|
||
|
AggregatedRating float64 `json:"aggregated_rating,omitempty"`
|
||
|
AggregatedRatingCount int `json:"aggregated_rating_count,omitempty"`
|
||
|
Artworks []int `json:"artworks,omitempty"`
|
||
|
Bundles []int `json:"bundles,omitempty"`
|
||
|
Collection int `json:"collection,omitempty"`
|
||
|
GameEngines []int `json:"game_engines,omitempty"`
|
||
|
Keywords []int `json:"keywords,omitempty"`
|
||
|
MultiplayerModes []int `json:"multiplayer_modes,omitempty"`
|
||
|
StandaloneExpansions []int `json:"standalone_expansions,omitempty"`
|
||
|
Storyline string `json:"storyline,omitempty"`
|
||
|
Videos []int `json:"videos,omitempty"`
|
||
|
LanguageSupports []struct {
|
||
|
Language int `json:"language,omitempty"`
|
||
|
LanguageSupportType int `json:"language_support_type,omitempty"`
|
||
|
} `json:"language_supports,omitempty"`
|
||
|
Collections []int `json:"collections,omitempty"`
|
||
|
}
|
||
|
|
||
|
type IGDBGameDetails []*IGDBGameDetail
|
||
|
|
||
|
type IGDBCompany struct {
|
||
|
ID int `json:"id"`
|
||
|
ChangeDateCategory int `json:"change_date_category"`
|
||
|
Country int `json:"country"`
|
||
|
CreatedAt int `json:"created_at"`
|
||
|
Description string `json:"description"`
|
||
|
Developed []int `json:"developed"`
|
||
|
Logo int `json:"logo"`
|
||
|
Name string `json:"name"`
|
||
|
Parent int `json:"parent"`
|
||
|
Published []int `json:"published"`
|
||
|
Slug string `json:"slug"`
|
||
|
StartDate int `json:"start_date"`
|
||
|
StartDateCategory int `json:"start_date_category"`
|
||
|
UpdatedAt int `json:"updated_at"`
|
||
|
URL string `json:"url"`
|
||
|
Websites []int `json:"websites"`
|
||
|
Checksum string `json:"checksum"`
|
||
|
}
|
||
|
|
||
|
type IGDBCompanies []*IGDBCompany
|
||
|
|
||
|
type IGDBSearch struct {
|
||
|
ID int `json:"id"`
|
||
|
AlternativeName string `json:"alternative_name"`
|
||
|
Game int `json:"game"`
|
||
|
Name string `json:"name"`
|
||
|
PublishedAt int `json:"published_at"`
|
||
|
}
|
||
|
|
||
|
type IGDBSearches []*IGDBSearch
|