MCPcopy Create free account
hub / github.com/Preloading/TwitterAPIBridge / Media

Struct Media

bridge/bridge.go:154–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154type 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
174type Entities struct {
175 Media []Media `json:"media" xml:"media"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected