| 152 | } |
| 153 | |
| 154 | type Media struct { |
| 155 | XMLName xml.Name `xml:"media" json:"-"` |
| 156 | // XMLFormat MediaXML `xml:",innerxml" json:"-"` |
| 157 | ID int64 `json:"id" xml:"id"` |
| 158 | IDStr string `json:"id_str" xml:"-"` |
| 159 | MediaURL string `json:"media_url" xml:"media_url"` |
| 160 | MediaURLHttps string `json:"media_url_https" xml:"media_url_https"` |
| 161 | URL string `json:"url,omitempty" xml:"url"` |
| 162 | DisplayURL string `json:"display_url,omitempty" xml:"display_url"` |
| 163 | ExpandedURL string `json:"expanded_url,omitempty" xml:"expanded_url"` |
| 164 | Sizes MediaSize `json:"sizes" xml:"sizes"` |
| 165 | // Sizes map[string]MediaSize `json:"sizes"` |
| 166 | Type string `json:"type" xml:"type"` |
| 167 | Indices []int `json:"indices,omitempty" xml:"-"` |
| 168 | Start int `xml:"start" json:"-"` |
| 169 | End int `xml:"end" json:"-"` |
| 170 | StartAttr int `xml:"start,attr" json:"-"` |
| 171 | EndAttr int `xml:"end,attr" json:"-"` |
| 172 | } |
| 173 | |
| 174 | type Entities struct { |
| 175 | Media []Media `json:"media" xml:"media"` |
nothing calls this directly
no outgoing calls
no test coverage detected