Builder
public struct Builder
Builds a Gini Health API Library
-
Undocumented
Declaration
Swift
public var sessionDelegate: URLSessionDelegate? -
Creates a Gini Health API Library
Declaration
Swift
public init(client: Client, api: APIDomain = .default, userApi: UserDomain = .default, logLevel: LogLevel = .none, sessionDelegate: URLSessionDelegate? = nil)Parameters
clientThe Gini Health API client credentials
apiThe Gini Health API that the library interacts with.
APIDomain.defaultby defaultuserApiThe Gini User API that the library interacts with.
UserDomain.defaultby defaultlogLevelThe log level.
LogLevel.noneby default.sessionDelegateThe session delegate
URLSessionDelegatewill be set for Gini Health API Library withPinning. -
Creates a Gini Health API Library to be used with a transparent proxy and a custom api access token source.
Declaration
Swift
public init(customApiDomain: String, alternativeTokenSource: AlternativeTokenSource, logLevel: LogLevel = .none, sessionDelegate: URLSessionDelegate? = nil) -
Undocumented
Declaration
Swift
public func build() -> GiniHealthAPI
View on GitHub
Builder Structure Reference