-
Notifications
You must be signed in to change notification settings - Fork 0
/
zipAddon.go
47 lines (41 loc) · 1.85 KB
/
zipAddon.go
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// This file was generated from JSON Schema using quicktype, do not modify it directly.
// To parse and unparse this JSON data, add this code to your project and do:
//
// zipAddon, err := UnmarshalZipAddon(bytes)
// bytes, err = zipAddon.Marshal()
package main
import "encoding/json"
func UnmarshalZipAddon(data []byte) (ZipAddon, error) {
var r ZipAddon
err := json.Unmarshal(data, &r)
return r, err
}
func (r *ZipAddon) Marshal() ([]byte, error) {
return json.Marshal(r)
}
type ZipAddon struct {
ID int64 `json:"id"`
DisplayName string `json:"displayName"`
FileName string `json:"fileName"`
FileDate string `json:"fileDate"`
FileLength int64 `json:"fileLength"`
ReleaseType int64 `json:"releaseType"`
FileStatus int64 `json:"fileStatus"`
DownloadURL string `json:"downloadUrl"`
IsAlternate bool `json:"isAlternate"`
AlternateFileID int64 `json:"alternateFileId"`
Dependencies []interface{} `json:"dependencies"`
IsAvailable bool `json:"isAvailable"`
Modules []Module `json:"modules"`
PackageFingerprint int64 `json:"packageFingerprint"`
GameVersion []string `json:"gameVersion"`
InstallMetadata interface{} `json:"installMetadata"`
ServerPackFileID interface{} `json:"serverPackFileId"`
HasInstallScript bool `json:"hasInstallScript"`
GameVersionDateReleased string `json:"gameVersionDateReleased"`
GameVersionFlavor interface{} `json:"gameVersionFlavor"`
}
type Module struct {
Foldername string `json:"foldername"`
Fingerprint int64 `json:"fingerprint"`
}