EPINetworkingFactory

public final class EPINetworkingFactory

Factory class for building repositories and services within the EPINetworking framework.

  • Initialises instance of EPINetworkingFactory

    Declaration

    Swift

    public init()
  • Builds and configures repositories based on the provided configuration.

    Declaration

    Swift

    public func buildRepositories(_ configuration: EPINetworkingConfiguration) -> EPIRepositoriesProtocol

    Parameters

    configuration

    The EPINetworking configuration specifying the base URL, log level, access token provider, and authentication update closure.

    Return Value

    An instance conforming to EPIRepositoriesProtocol.

  • Builds and configures services based on the provided configuration.

    Declaration

    Swift

    public func buildServices(_ configuration: EPINetworkingConfiguration) -> EPIServicesProtocol

    Parameters

    configuration

    The EPINetworking configuration specifying the base URL, log level, access token provider, and authentication update closure.

    Return Value

    An instance conforming to EPIServicesProtocol.