IceCubesApp/Packages/Models/Sources/Models/Instance.swift

43 lines
1 KiB
Swift
Raw Normal View History

2022-12-04 08:50:25 +00:00
import Foundation
public struct Instance: Codable {
public struct Stats: Codable {
public let userCount: Int
public let statusCount: Int
public let domainCount: Int
}
2023-01-17 10:36:01 +00:00
public struct Configuration: Codable {
public struct Statuses: Codable {
public let maxCharacters: Int
public let maxMediaAttachments: Int
}
2023-01-17 10:36:01 +00:00
public struct Polls: Codable {
public let maxOptions: Int
public let maxCharactersPerOption: Int
public let minExpiration: Int
public let maxExpiration: Int
}
2023-01-17 10:36:01 +00:00
public let statuses: Statuses
public let polls: Polls
}
2023-01-17 10:36:01 +00:00
public struct Rule: Codable, Identifiable {
public let id: String
public let text: String
}
2023-01-17 10:36:01 +00:00
2022-12-04 08:50:25 +00:00
public let title: String
public let shortDescription: String
public let email: String
public let version: String
public let stats: Stats
public let languages: [String]
public let registrations: Bool
public let thumbnail: URL?
public let configuration: Configuration
public let rules: [Rule]
2022-12-04 08:50:25 +00:00
}