package models type XResponse struct { Username string `json:"username,omitempty"` PreviousUsernames []UserHistory `json:"previous_usernames,omitempty"` Query string `json:"query,omitempty"` Response string `json:"response,omitempty"` Data interface{} `json:"data,omitempty"` Credits struct { Remaining int `json:"remaining"` Unlimited bool `json:"unlimited"` } `json:"credits"` Message string `json:"message,omitempty"` Error string `json:"error,omitempty"` } type UserHistory struct { Username string `json:"username"` TimeAgo string `json:"time_ago"` } type TweetResult struct { Handle string `json:"handle"` Name string `json:"name"` Text string `json:"text"` TweetID string `json:"tweet_id"` Type string `json:"type"` URL string `json:"url"` } type Progress struct { Current int `json:"current"` Total int `json:"total"` } type Complete struct { Duration string `json:"duration"` FailedIDs []string `json:"failed_ids"` TotalFailed int `json:"total_failed"` TotalFetched int `json:"total_fetched"` } type TweetsStreamResponse struct { Username string `json:"username,omitempty"` Tweet *TweetResult `json:"tweet,omitempty"` Progress *Progress `json:"progress,omitempty"` Complete *Complete `json:"complete,omitempty"` Error string `json:"error,omitempty"` }