types.go
changeset 185 faa72b9877c5
parent 182 d360e5a41070
child 186 eb9e257ba50c
equal deleted inserted replaced
184:546db8bb5867 185:faa72b9877c5
   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           int64 `json:"id"`
   110 	ID         int64 `json:"id"`
   111 	Following    bool  `json:"following"`
   111 	Following  bool  `json:"following"`
   112 	FollowedBy   bool  `json:"followed_by"`
   112 	FollowedBy bool  `json:"followed_by"`
   113 	Blocking     bool  `json:"blocking"`
   113 	Blocking   bool  `json:"blocking"`
   114 	Muting       bool  `json:"muting"`
   114 	Muting     bool  `json:"muting"`
   115 	MutingBoosts bool  `json:"muting_boosts"`
   115 	Requested  bool  `json:"requested"`
   116 	Requested    bool  `json:"requested"`
       
   117 }
   116 }
   118 
   117 
   119 // Report represents a Mastodon report entity
   118 // Report represents a Mastodon report entity
   120 type Report struct {
   119 type Report struct {
   121 	ID          int64  `json:"id"`
   120 	ID          int64  `json:"id"`
   142 	CreatedAt          time.Time    `json:"created_at"`
   141 	CreatedAt          time.Time    `json:"created_at"`
   143 	ReblogsCount       int64        `json:"reblogs_count"`
   142 	ReblogsCount       int64        `json:"reblogs_count"`
   144 	FavouritesCount    int64        `json:"favourites_count"`
   143 	FavouritesCount    int64        `json:"favourites_count"`
   145 	Reblogged          bool         `json:"reblogged"`
   144 	Reblogged          bool         `json:"reblogged"`
   146 	Favourited         bool         `json:"favourited"`
   145 	Favourited         bool         `json:"favourited"`
       
   146 	Muted              bool         `json:"muted"`
   147 	Sensitive          bool         `json:"sensitive"`
   147 	Sensitive          bool         `json:"sensitive"`
   148 	SpoilerText        string       `json:"spoiler_text"`
   148 	SpoilerText        string       `json:"spoiler_text"`
   149 	Visibility         string       `json:"visibility"`
   149 	Visibility         string       `json:"visibility"`
   150 	MediaAttachments   []Attachment `json:"media_attachments"`
   150 	MediaAttachments   []Attachment `json:"media_attachments"`
   151 	Mentions           []Mention    `json:"mentions"`
   151 	Mentions           []Mention    `json:"mentions"`