SwiftarrClientApp

public enum SwiftarrClientApp : String, Content, CaseIterable

Names of clients that consume the Swiftarr client API. Used in the SettingsAppFeaturePair struct. Clients: Be sure to anticipate server values not listed here.

  • The website, but NOT the API layer

    Declaration

    Swift

    case swiftarr
  • Client apps that consume the Swiftarr API

    Declaration

    Swift

    case cruisemonkey
  • Declaration

    Swift

    case rainbowmonkey
  • Declaration

    Swift

    case kraken
  • Declaration

    Swift

    case tricordarr
  • Declaration

    Swift

    case tacobarr
  • all

    A feature disabled for all will be turned off at the API layer , meaning that calls to that area of the API will return errors. Clients should still attempt to use disabledFeatures to indicate the cause, rather than just displaying HTTP status errors.

    Declaration

    Swift

    case all
  • For clients use. Clients need to be prepared for additional values to be added serverside. Those new values get decoded as ‘unknown’.

    Declaration

    Swift

    case unknown
  • When creating ourselves from a decoder, return .unknown for cases we’re not prepared to handle.

    Declaration

    Swift

    public init(from decoder: Decoder) throws