-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.go
More file actions
43 lines (36 loc) · 954 Bytes
/
models.go
File metadata and controls
43 lines (36 loc) · 954 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package main
// FacebookToken - Facebook Token type
type FacebookToken struct {
Token string
}
// FacebookProfile - Facebook profile type
type FacebookProfile struct {
Id string
Name string
}
// FacebookPublicProfile - A person's name, profile picture, locale, age range and gender are included by default with the public_profile permission.
type FacebookPublicProfile struct {
Id string
Name string
Locale string
AgeRange FacebookAgeRange `json:"age_range"`
Gender string
}
// FacebookAgeRange - Facebook age range type
type FacebookAgeRange struct {
Min int
}
// FacebookPaging - Facebook paging type
type FacebookPaging struct {
Next string
}
// FacebookSummary - Facebook summary info type
type FacebookSummary struct {
TotalCount int `json:"total_count,omitempty"`
}
// FacebookFriends - friends list
type FacebookFriends struct {
Data []FacebookProfile
Paging FacebookPaging `json:"paging,omitempty"`
Summary FacebookSummary
}