mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-19 04:52:41 +01:00
36 lines
609 B
Swift
36 lines
609 B
Swift
//
|
|
// Tweet.swift
|
|
// Account
|
|
//
|
|
// Created by Maurice Parker on 4/16/20.
|
|
// Copyright © 2020 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct Tweet: Codable {
|
|
|
|
let createdAt: Date?
|
|
let idStr: String?
|
|
let text: String?
|
|
let user: TwitterUser
|
|
let truncated: Bool
|
|
let extendedTweet: ExtendedTweet?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case createdAt = "created_at"
|
|
case idStr = "id_str"
|
|
case text = "text"
|
|
case user = "user"
|
|
case truncated = "truncated"
|
|
case extendedTweet = "extended_tweet"
|
|
}
|
|
|
|
}
|
|
|
|
struct ExtendedTweet: Codable {
|
|
|
|
let full_text: String?
|
|
|
|
}
|