This repository was archived by the owner on Nov 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser.go
More file actions
46 lines (41 loc) · 1.64 KB
/
user.go
File metadata and controls
46 lines (41 loc) · 1.64 KB
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
package adn
import (
"time"
)
type Description struct {
Text string `json:"text,omitempty"`
HTML string `json:"html,omitempty"`
Entities *Entities `json:"entities"`
}
type Image struct {
Height int `json:"height,omitempty"`
Width int `json:"width,omitempty"`
URL string `json:"url,omitempty"`
IsDefault bool `json:"is_default,omitempty"`
}
type Counts struct {
Following int `json:"following,omitempty"`
Followers int `json:"followers,omitempty"`
Posts int `json:"posts,omitempty"`
Stars int `json:"stars,omitempty"`
}
type User struct {
ID string `json:"id,omitempty"`
Username string `json:"username,omitempty"`
Name string `json:"name,omitempty"`
Description Description `json:"description,omitempty"`
Timezone string `json:"timezone,omitempty"`
Locale string `json:"locale,omitempty"`
AvatarImage *Image `json:"avatar_image,omitempty"`
CoverImage *Image `json:"cover_image,omitempty"`
Type string `json:"type,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
Counts *Counts `json:"counts,omitempty"`
FollowsYou bool `json:"follows_you,omitempty"`
YouBlocked bool `json:"you_blocked,omitempty"`
YouFollow bool `json:"you_follow,omitempty"`
YouMuted bool `json:"you_muted,omitempty"`
YouCanSubscribe bool `json:"you_can_subscribe,omitempty"`
VerifiedDomain string `json:"verified_domain,omitempty"`
Annotations []*Annotation `json:"annotations,omitempty"`
}