ClientApp
final class ClientApp : Model, @unchecked Sendable
A client application for Twitarr that we suggest users download. Shown in the web UI’s “Client Apps” page and
returned by GET /api/v3/admin/clients.
See
See Also: ClientAppData the DTO for returning info on ClientApps.See
See Also: ClientAppUploadData the DTO for mutating ClientApps.See
See Also: CreateClientAppSchema the Migration for creating the ClientApp table in the database.-
Declaration
Swift
static let schema: String
-
The client app’s ID.
Declaration
Swift
@ClientApp .ID var id: UUID? { get set } -
Display name of the app.
Declaration
Swift
@ClientApp .Field var name: String { get set } -
A short description of the app.
Declaration
Swift
@ClientApp .Field var appDescription: String { get set } -
Filename of the app’s icon in the image store.
Declaration
Swift
@ClientApp .OptionalField var image: String? { get set } -
Who builds the app.
Declaration
Swift
@ClientApp .Field var developer: String { get set } -
Used to order apps in lists.
Declaration
Swift
@ClientApp .Field var sortName: String { get set } -
One entry per platform the app is available on. The app’s
platformsare derived from this.Declaration
Swift
@ClientApp .Field var links: [ClientAppLink] { get set } -
Optional linkage to one of the known
SwiftarrClientAppvalues. Not shown to users.Declaration
Swift
@ClientApp .OptionalField var swiftarrClient: SwiftarrClientApp? { get set } -
Declaration
Swift
@ClientApp .Timestamp var createdAt: Date? { get set } -
Declaration
Swift
@ClientApp .Timestamp var updatedAt: Date? { get set }
-
Declaration
Swift
init() -
Declaration
Swift
init(name: String, description: String, image: String?, developer: String, sortName: String? = nil, links: [ClientAppLink], swiftarrClient: SwiftarrClientApp? = nil) -
Declaration
Swift
var platforms: [ClientAppPlatform] { get }
View on GitHub