types.go
changeset 172 1f8ea3aa20e7
parent 159 408aa794d9bb
child 175 2541f5050df3
equal deleted inserted replaced
171:1a311b0316d2 172:1f8ea3aa20e7
    49 	Website string `json:"website"`
    49 	Website string `json:"website"`
    50 }
    50 }
    51 
    51 
    52 // Attachment represents a Mastodon attachement entity
    52 // Attachment represents a Mastodon attachement entity
    53 type Attachment struct {
    53 type Attachment struct {
    54 	ID         int64  `json:"iD"`
    54 	ID         int64  `json:"id"`
    55 	Type       string `json:"type"`
    55 	Type       string `json:"type"`
    56 	URL        string `json:"url"`
    56 	URL        string `json:"url"`
    57 	RemoteURL  string `json:"remote_url"`
    57 	RemoteURL  string `json:"remote_url"`
    58 	PreviewURL string `json:"preview_url"`
    58 	PreviewURL string `json:"preview_url"`
    59 	TextURL    string `json:"text_url"`
    59 	TextURL    string `json:"text_url"`
   114 	Requested  bool  `json:"requested"`
   114 	Requested  bool  `json:"requested"`
   115 }
   115 }
   116 
   116 
   117 // Report represents a Mastodon report entity
   117 // Report represents a Mastodon report entity
   118 type Report struct {
   118 type Report struct {
   119 	ID          int64  `json:"iD"`
   119 	ID          int64  `json:"id"`
   120 	ActionTaken string `json:"action_taken"`
   120 	ActionTaken string `json:"action_taken"`
   121 }
   121 }
   122 
   122 
   123 // Results represents a Mastodon results entity
   123 // Results represents a Mastodon results entity
   124 type Results struct {
   124 type Results struct {