2020-07-29 23:50:30 +00:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
struct Account: Codable, Hashable {
|
|
|
|
struct Field: Codable, Hashable {
|
|
|
|
let name: String
|
2020-08-21 02:29:01 +00:00
|
|
|
let value: HTML
|
2020-07-29 23:50:30 +00:00
|
|
|
let verifiedAt: Date?
|
|
|
|
}
|
|
|
|
|
|
|
|
let id: String
|
|
|
|
let username: String
|
|
|
|
let acct: String
|
|
|
|
let displayName: String
|
|
|
|
let locked: Bool
|
|
|
|
let createdAt: Date
|
|
|
|
let followersCount: Int
|
|
|
|
let followingCount: Int
|
|
|
|
let statusesCount: Int
|
2020-08-21 02:29:01 +00:00
|
|
|
let note: HTML
|
2020-07-29 23:50:30 +00:00
|
|
|
let url: URL
|
|
|
|
let avatar: URL
|
|
|
|
let avatarStatic: URL
|
|
|
|
let header: URL
|
|
|
|
let headerStatic: URL
|
|
|
|
let fields: [Field]
|
|
|
|
let emojis: [Emoji]
|
2020-08-23 23:39:52 +00:00
|
|
|
@DecodableDefault.False private(set) var bot: Bool
|
|
|
|
@DecodableDefault.False private(set) var moved: Bool
|
|
|
|
@DecodableDefault.False private(set) var discoverable: Bool
|
2020-07-29 23:50:30 +00:00
|
|
|
}
|