Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leogdion/e3e69b1d7888bec1945f2fcadb964c96 to your computer and use it in GitHub Desktop.
Save leogdion/e3e69b1d7888bec1945f2fcadb964c96 to your computer and use it in GitHub Desktop.
public struct Tweet : Codable {
public let created_at : Date
public let id : Int
public let full_text : String
public let display_text_range : [Int]
public let entities : TweetEntities
public let source : String
public let in_reply_to_status_id : Int?
public let in_reply_to_user_id : Int?
public let in_reply_to_screen_name : String
public let user : TweetUser
public let quoted_status : QuotedTweet?
public let is_quote_status : Bool
public let retweet_count : Int
public let favorite_count : Int
public let favorited : Bool
public let retweeted : Bool
public let possibly_sensitive : Bool
public let possibly_sensitive_appealable : Bool
public let lang : String
}
public struct QuotedTweet : Codable {
public let created_at : Date
public let id : Int
public let full_text : String
public let display_text_range : [Int]
public let entities : TweetEntities
public let user : TweetUser
public let source : String
public let extended_entities : TweetEntities
public let is_quote_status : Bool
public let retweet_count : Int
public let favorite_count : Int
public let favorited : Bool
public let retweeted : Bool
public let possibly_sensitive : Bool
public let possibly_sensitive_appealable : Bool
public let lang : String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment