Classes

The following classes are available globally.

  • Cache is used internally for various tasks such as in-memory caching image data. Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.

    See more

    Declaration

    Swift

    public final class Cache
  • This class is used to create instances of Repository that can be used to start requests based on the given endpoint.

    See more

    Declaration

    Swift

    public final class Client<Repository> where Repository : EndpointProtocol
  • A configuration class that can be used with Environment, Repository, Endpoint and Request. A configuration object follows the following rules:

    1. When a Configuration object is passed to an Environment, each Repository with its Endpoints and requests will inherit this configuration.
    2. When a Configuration object is passed to Repository, all its Endpoints and Requests will inherit this configuration.
    See more

    Declaration

    Swift

    public final class Configuration
    extension Configuration: NSCopying
  • Endpoint configuration class which is used in EndpointProtocol implementations.

    See more

    Declaration

    Swift

    public final class EndpointConfiguration
  • The Environment contains information about host, port, configuration and it’s used in Request instances.

    See more

    Declaration

    Swift

    open class Environment
  • Inherit this class as to create your transformers. You should pass FromType and ToType (generic types) in your subclass definition.

    See more

    Declaration

    Swift

    open class Transformer<FromType, ToType> : NSObject, TransformerProtocol

Enums

  • The core class of TermiNetwork. It handles the request creation and its execution.

    See more

    Declaration

    Swift

    public final class Request : Operation
    extension Request: NSCopying
  • This class is inherited by Request to control the execution of the request.

    See more

    Declaration

    Swift

    public class Operation : Foundation.Operation
  • Use this class to create custom queues.

    See more

    Declaration

    Swift

    public final class Queue : OperationQueue
  • Adds Reachability supportt

    See more

    Declaration

    Swift

    open class Reachability