Protocols

The following protocols are available globally.

  • Objects that can be created fom a JSON-string or be converted to one, conform to this protocol.

    The used datatypes should be in the format as returned from the StackExchange API. (for example Date as UNIX timestamp)

    Note

    This protocol inherits from DictionaryConvertible

    Author

    FelixSFD

    See more

    Declaration

    Swift

    public protocol JsonConvertible: DictionaryConvertible
  • Objects that can represented as a String conform to this protocol.

    Note

    This is similar to RawRepresentable, but is NOT the same.

    Author

    FelixSFD

    See more

    Declaration

    Swift

    public protocol StringRepresentable