-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproblem.go
80 lines (75 loc) · 3.12 KB
/
problem.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
package moonapi
type MoonBoardConfiguration struct {
ID int `json:"Id"`
Description string `json:"Description"`
LowGrade interface{} `json:"LowGrade"`
HighGrade interface{} `json:"HighGrade"`
}
type Setter struct {
ID string `json:"Id"`
Nickname string `json:"Nickname"`
Firstname string `json:"Firstname"`
Lastname string `json:"Lastname"`
City string `json:"City"`
Country string `json:"Country"`
ProfileImageURL string `json:"ProfileImageUrl"`
CanShareData bool `json:"CanShareData"`
}
type HoldSetup struct {
ID int `json:"Id"`
Description string `json:"Description"`
Setby interface{} `json:"Setby"`
DateInserted interface{} `json:"DateInserted"`
DateUpdated interface{} `json:"DateUpdated"`
DateDeleted interface{} `json:"DateDeleted"`
IsLocked bool `json:"IsLocked"`
Holdsets interface{} `json:"Holdsets"`
MoonBoardConfigurations interface{} `json:"MoonBoardConfigurations"`
HoldLayoutID int `json:"HoldLayoutId"`
AllowClimbMethods bool `json:"AllowClimbMethods"`
}
type Problem struct {
Method string `json:"Method"`
Name string `json:"Name"`
Grade string `json:"Grade"`
UserGrade interface{} `json:"UserGrade"`
MoonBoardConfiguration MoonBoardConfiguration `json:"MoonBoardConfiguration"`
MoonBoardConfigurationID int `json:"MoonBoardConfigurationId"`
Setter Setter `json:"Setter"`
FirstAscender bool `json:"FirstAscender"`
Rating int `json:"Rating"`
UserRating int `json:"UserRating"`
Repeats int `json:"Repeats"`
Attempts int `json:"Attempts"`
Holdsetup HoldSetup `json:"Holdsetup"`
IsBenchmark bool `json:"IsBenchmark"`
Moves []struct {
ID int `json:"Id"`
Description string `json:"Description"`
IsStart bool `json:"IsStart"`
IsEnd bool `json:"IsEnd"`
} `json:"Moves"`
Holdsets interface{} `json:"Holdsets"`
Locations []struct {
ID int `json:"Id"`
Holdset interface{} `json:"Holdset"`
Description interface{} `json:"Description"`
X int `json:"X"`
Y int `json:"Y"`
Color string `json:"Color"`
Rotation int `json:"Rotation"`
Type int `json:"Type"`
HoldNumber interface{} `json:"HoldNumber"`
Direction int `json:"Direction"`
DirectionString string `json:"DirectionString"`
} `json:"Locations"`
RepeatText string `json:"RepeatText"`
NumberOfTries interface{} `json:"NumberOfTries"`
NameForURL string `json:"NameForUrl"`
ID int `json:"Id"`
APIID int `json:"ApiId"`
DateInserted string `json:"DateInserted"`
DateUpdated interface{} `json:"DateUpdated"`
DateDeleted interface{} `json:"DateDeleted"`
DateTimeString string `json:"DateTimeString"`
}