NetworkRetryOperation
open class NetworkRetryOperation : GenericOperation<Response>
Class for network operation with retry
-
Last network operations
Declaration
Swift
public private(set) var lastNetworkOperation: GenericOperation<Response>? { get }
-
Request
Declaration
Swift
public let request: ServiceRequest
-
Retry
Declaration
Swift
public let retry: RetryProtocol
-
Token context
Declaration
Swift
public let tokenContext: TokenContext
-
Access Token Provider
Declaration
Swift
public let accessTokenProvider: AccessTokenProvider
-
Conntection
Declaration
Swift
public let connection: HttpConnectionProtocol
-
Token
Declaration
Swift
public private(set) var token: AccessToken? { get }
-
Reachability
Declaration
Swift
public let reachability: ReachabilityProtocol
-
Initializer
Declaration
Swift
public init(request: ServiceRequest, retry: RetryProtocol, tokenContext: TokenContext, accessTokenProvider: AccessTokenProvider, connection: HttpConnectionProtocol, reachability: ReachabilityProtocol? = nil)
Parameters
request
request
retry
retry
tokenContext
token context
accessTokenProvider
access token provider
connection
connection
-
Main
Declaration
Swift
override open func main()
-
Cancel
Declaration
Swift
override open func cancel()