This repository has been archived by the owner on Dec 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfreecompany_structs.go
106 lines (91 loc) · 2.5 KB
/
freecompany_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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package xivapi
import "time"
type SearchFreeCompanyResult struct {
Pagination Pagination `json:"pagination"`
Results []SearchFreeCompanyResultItem `json:"results"`
}
type SearchFreeCompanyResultItem struct {
Crest []string `json:"Crest"`
ID string `json:"ID"`
Name string `json:"Name"`
Server string `json:"Server"`
}
//PlayerContentQueryOptions provide search parameters for all /*/Search endpoints (PvPTeam, Character, FreeCompany, LinkShell)
type PlayerContentQueryOptions struct {
Name string `url:"name,omitempty"`
Server string `url:"server,omitempty"`
Page int `url:"page,omitempty"`
}
type FreeCompanyResult struct {
FreeCompany FreeCompany `json:"FreeCompany"`
Members []FreeCompanyMember `json:"FreeCompanyMembers"`
Info FreeCompanyInfo `json:"Info"`
}
type FreeCompanyInfo struct {
FreeCompanyState FreeCompanyState `json:"FreeCompany"`
FreeCompanyMembers FreeCompanyState `json:"FreeCompanyMembers"`
}
type FreeCompanyState struct {
State State `json:"State"`
Updated string `json:"Updated"`
UpdatedTimestamp time.Time
}
type FreeCompany struct {
Active string
ActiveMemberCount int
Crest []string
Estate FreeCompanyEstate
Focus []FreeCompanyFocus
Formed string
FormedTimestamp time.Time
GrandCompany string
ID string
Name string
ParseDate string
ParseDateTimestamp time.Time
Rank int
Ranking FreeCompanyRanking
Recruitment string `json:"Recruitment"`
Reputation []FreeCompanyReputation `json:"Reputation"`
Seeking []FreeCompanySeeking
Server string
Slogon string
Tag string
}
type FreeCompanySeeking struct {
Icon string
Name string
Status bool
}
type FreeCompanyReputation struct {
Name string
Progress int
Rank string
}
type FreeCompanyRanking struct {
Weekly string `json:"Weekly"`
Monthly string `json:"Monthly"`
}
type FreeCompanyFocus struct {
Icon string
Name string
Status bool
}
type FreeCompanyEstate struct {
Greeting string
Name string
Plot string
}
type FreeCompanyMember struct {
Avatar string
FeastMatches int
ID int64
Name string
Rank string
RankIcon string
Server string
}
type FreeCompanyQuery struct {
Data string `url:"data,omitempty"`
Columns string `url:"columns,omitempty"`
}