Classes
The following classes are available globally.
-
See moreServicerepresents the service that holds all the network functionality, offers configuration to the filter and sort query creation and stores the RESTful service address to perform the network requestsDeclaration
Swift
public class Service<N> where N : NetworkHandler -
See moreJSONServiceprovides an initialization of aServicewith aURLSessionJSONNetworkHandlerthat uses JSON as encoding and decoding strategyDeclaration
Swift
public class JSONService : Service<URLSessionJSONNetworkHandler>
-
See moreURLSessionNetworkHandlerconforms to theNetworkHandlerprotocol and represents an implementation of the different network requestsDeclaration
Swift
public class URLSessionNetworkHandler<Encoder: TopLevelEncoder, Decoder: TopLevelDecoder>: NetworkHandler where Encoder.Output == Data, Decoder.Input == Data -
The
See moreURLSessionJSONNetworkHandleris a specialized version ofURLSessionNetworkHandlerthat uses JSON as encoding and decoding strategy.Declaration
Swift
public class URLSessionJSONNetworkHandler : URLSessionNetworkHandler<JSONEncoder, JSONDecoder>
-
The property wrapper is used for automatic observation of a connected data structure that is automatically synchronized with the specified RESTful service in the
Servicevariable. Filtering, Sorting or Caching the data structure is optional and can be configured with the initialization.- Paramaters:
- Element: specifies the type of data structure that needs to be observed, it conforms to
RESTElementwhich ensures that the data structure supports the needed functionality - F: specifies the type of data structure where a filter is applied on, it conforms to
Filterablewhich ensures that the data structure supports the needed functionality - S: specifies the type of data strucutre that will be sorted, it conforms to
Sortablewhich ensures that the data structure supports the needed functionality - ID: specifies the type of the ID from the
Element
- Element: specifies the type of data structure that needs to be observed, it conforms to
Declaration
Swift
@propertyWrapper public class REST <Element: RESTElement, N: NetworkHandler, F: Filterable, S: Sortable, ID: CustomStringConvertible >: LocalFileStorable where Element.ID == ID? - Paramaters:
View on GitHub
Classes Reference