2020-07-29 23:50:30 +00:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
struct Instance: Codable, Hashable {
|
|
|
|
struct URLs: Codable, Hashable {
|
|
|
|
let streamingApi: URL
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Stats: Codable, Hashable {
|
|
|
|
let userCount: Int
|
|
|
|
let statusCount: Int
|
|
|
|
let domainCount: Int
|
|
|
|
}
|
|
|
|
|
|
|
|
let uri: String
|
|
|
|
let title: String
|
|
|
|
let description: String
|
|
|
|
let shortDescription: String?
|
|
|
|
let email: String
|
|
|
|
let version: String
|
2020-08-23 23:39:52 +00:00
|
|
|
@DecodableDefault.EmptyList private(set) var languages: [String]
|
|
|
|
@DecodableDefault.False private(set) var registrations: Bool
|
|
|
|
@DecodableDefault.False private(set) var approvalRequired: Bool
|
|
|
|
@DecodableDefault.False private(set) var invitesEnabled: Bool
|
2020-07-29 23:50:30 +00:00
|
|
|
let urls: URLs
|
|
|
|
let stats: Stats
|
|
|
|
let thumbnail: URL?
|
|
|
|
let contactAccount: Account?
|
|
|
|
}
|