Protocols
The following protocols are available globally.
-
Objects that can be created fom a dictionary or be converted to one, conform to this protocol.
See moreDeclaration
Swift
public protocol DictionaryConvertible
-
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
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.Declaration
Swift
public protocol StringRepresentable