28 Everything manipulated/returned by the API |
28 Everything manipulated/returned by the API |
29 */ |
29 */ |
30 |
30 |
31 // Account represents a Mastodon account entity |
31 // Account represents a Mastodon account entity |
32 type Account struct { |
32 type Account struct { |
33 ID int `json:"id"` |
33 ID int `json:"id"` |
34 Username string `json:"username"` |
34 Username string `json:"username"` |
35 Acct string `json:"acct"` |
35 Acct string `json:"acct"` |
36 DisplayName string `json:"display_name"` |
36 DisplayName string `json:"display_name"` |
37 Note string `json:"note"` |
37 Note string `json:"note"` |
38 URL string `json:"url"` |
38 URL string `json:"url"` |
39 Avatar string `json:"avatar"` |
39 Avatar string `json:"avatar"` |
40 Header string `json:"header"` |
40 Header string `json:"header"` |
41 Locked bool `json:"locked"` |
41 Locked bool `json:"locked"` |
42 CreatedAt string `json:"created_at"` |
42 CreatedAt time.Time `json:"created_at"` |
43 FollowersCount int `json:"followers_count"` |
43 FollowersCount int `json:"followers_count"` |
44 FollowingCount int `json:"following_count"` |
44 FollowingCount int `json:"following_count"` |
45 StatusesCount int `json:"statuses_count"` |
45 StatusesCount int `json:"statuses_count"` |
46 } |
46 } |
47 |
47 |
48 // Application represents a Mastodon application entity |
48 // Application represents a Mastodon application entity |
49 type Application struct { |
49 type Application struct { |
50 Name string `json:"name"` |
50 Name string `json:"name"` |
96 Acct string `json:"acct"` |
96 Acct string `json:"acct"` |
97 } |
97 } |
98 |
98 |
99 // Notification represents a Mastodon notification entity |
99 // Notification represents a Mastodon notification entity |
100 type Notification struct { |
100 type Notification struct { |
101 ID int `json:"id"` |
101 ID int `json:"id"` |
102 Type string `json:"type"` |
102 Type string `json:"type"` |
103 CreatedAt string `json:"created_at"` |
103 CreatedAt time.Time `json:"created_at"` |
104 Account *Account `json:"account"` |
104 Account *Account `json:"account"` |
105 Status *Status `json:"status"` |
105 Status *Status `json:"status"` |
106 } |
106 } |
107 |
107 |
108 // Relationship represents a Mastodon relationship entity |
108 // Relationship represents a Mastodon relationship entity |
109 type Relationship struct { |
109 type Relationship struct { |
110 ID int `json:"id"` |
110 ID int `json:"id"` |