-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgames.go
More file actions
27 lines (23 loc) · 816 Bytes
/
games.go
File metadata and controls
27 lines (23 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package thegamesdb
//go:generate generategamesdb -output get_game.go -method GetGame -type GetGameResponse -endpoint GetGame.php
//go:generate generategamesdb -output get_games_list.go -method GetGamesList -type GetGamesListResponse -endpoint GetGamesList.php
type GetGamesListResponse struct {
Games []GameEntity `xml:"Game"`
}
type GetGameResponse struct {
Game GameEntity `xml:"Game"`
}
type GameEntity struct {
Id string `xml:"id"`
GameTitle string `xml:"GameTitle"`
ReleaseDate string `xml:"ReleaseDate"`
Platform string `xml:"Platform"`
Overview string `xml:"Overview"`
//Add genre
Players string `xml:"Players"`
Coop string `xml:"Co-op"`
ESRB string `xml:"ESRB"`
YouTube string `xml:"Youtube"`
Fanarts []Fanart `xml:"fanart"`
Boxarts []Boxart `xml:"boxart"`
}