-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
83 lines (74 loc) · 2.47 KB
/
structs.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package main
type (
BuildJson struct {
PackAuthor string `json:"packAuthor"`
MinecraftVersion string `json:"minecraftVersion"`
ModLoader string `json:"modLoader"`
ModLoaderVersion string `json:"modLoaderVersion"`
Includes []string `json:"includes"`
}
FingerprintRequest struct {
Fingerprints []int64 `json:"fingerprints"`
}
/*
=================== Manifest ===================
*/
ExportManifest struct {
Minecraft Minecraft `json:"minecraft"`
ManifestType string `json:"manifestType"`
ManifestVersion int `json:"manifestVersion"`
Name string `json:"name"`
Version string `json:"version"`
Author string `json:"author"`
Files []Files `json:"files"`
Overrides string `json:"overrides"`
}
ModLoaders struct {
ID string `json:"id"`
Primary bool `json:"primary"`
}
Minecraft struct {
Version string `json:"version"`
ModLoaders []ModLoaders `json:"modLoaders"`
}
Files struct {
ProjectID int `json:"projectID"`
FileID int `json:"fileID"`
Required bool `json:"required"`
}
/*
=================== Twitch Fingerprint Response ===================
*/
FingerprintResponse struct {
Data struct {
IsCacheBuilt bool `json:"isCacheBuilt"`
ExactMatches []FingerprintExactMatches `json:"exactMatches"`
ExactFingerprints []int64 `json:"exactFingerprints"`
InstalledFingerprints []int64 `json:"installedFingerprints"`
}
}
FingerprintExactMatches struct {
Id int `json:"id"`
File FingerprintFile `json:"file"`
}
FingerprintFile struct {
Id int `json:"id"`
FileName string `json:"fileName"`
FileNameOnDisk string `json:"fileNameOnDisk"`
FileDate string `json:"fileDate"`
ReleaseType int `json:"releaseType"`
FileStatus int `json:"fileStatus"`
DownloadUrl string `json:"downloadUrl"`
IsAlternate bool `json:"isAlternate"`
AlternateFileId int `json:"alternateFileId"`
//Dependencies []fileDependencies `json:"dependencies"`
IsAvailable bool `json:"isAvailable"`
Modules []FileModules `json:"modules"`
PackageFingerprint int `json:"packageFingerprint"`
GameVersion []string `json:"gameVersion"`
}
FileModules struct {
FolderName string `json:"folderName"`
Fingerprint int `json:"fimgerprint"`
}
)