Instance

public struct Instance : Codable, Hashable

General information about an instance

  • Undocumented

    Declaration

    Swift

    public init(uri: String? = nil, title: String? = nil, description: String? = nil, shortDescription: String? = nil, email: String? = nil, version: String, languages: [String]? = nil, registrations: Bool? = nil, approvalRequired: Bool? = nil, invitesEnabled: Bool? = nil, urls: Instance.InstanceURLs, stats: Instance.Stats, thumbnail: String? = nil, contactAccount: Account? = nil)
  • uri

    The domain name of the instance.

    Declaration

    Swift

    public var uri: String?
  • The title of the website.

    Declaration

    Swift

    public var title: String?
  • Admin-defined description of the Fediverse site.

    Declaration

    Swift

    public var description: String?
  • A shorter description defined by the admin.

    Declaration

    Swift

    public var shortDescription: String?
  • An email that may be contacted for any inquiries.

    Declaration

    Swift

    public var email: String?
  • The version of the server installed on the instance.

    Declaration

    Swift

    public var version: String
  • Primary languages of the website and its staff.

    Declaration

    Swift

    public var languages: [String]?
  • Whether registrations are enabled.

    Declaration

    Swift

    public var registrations: Bool?
  • Whether registrations require moderator approval.

    Declaration

    Swift

    public var approvalRequired: Bool?
  • Whether invites are enabled.

    Declaration

    Swift

    public var invitesEnabled: Bool?
  • URLs of interest for clients apps.

    Declaration

    Swift

    public var urls: InstanceURLs?
  • Statistics about how much information the instance contains.

    Declaration

    Swift

    public var stats: Stats
  • Banner image for the website.

    Declaration

    Swift

    public var thumbnail: String?
  • A user that can be contacted, as an alternative to email.

    Declaration

    Swift

    public var contactAccount: Account?
  • Undocumented

    See more

    Declaration

    Swift

    public struct InstanceURLs : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Stats : Codable, Hashable
  • Undocumented

    Declaration

    Swift

    var majorVersion: Int? { get }
  • Undocumented

    Declaration

    Swift

    var minorVersion: Int? { get }
  • Undocumented

    Declaration

    Swift

    var patchVersion: String? { get }
  • Undocumented

    Declaration

    Swift

    var canShowProfileDirectory: Bool { get }
  • Undocumented

    Declaration

    Swift

    var flavour: TootSDKFlavour { get }