ProxyService
public struct ProxyService : ProxyServicing
A service implementation for managing proxy operations.
-
Initializes the
ProxyService
with the specified repository.Declaration
Swift
public init( repository: ProxyRepositoryProtocol )
Parameters
repository
The repository for accessing proxy data.
-
Updates proxy indicators with the given payload.
Declaration
Swift
@MainActor public func fetchProxyIndicators( _ payload: ProxyIndicatorRequestPayload, response: LoadableSubject<ProxyIndicatorResponsePayload> )
Parameters
payload
The payload containing the proxy indicator request details.
response
The loadable subject to track the response. The loadable subject tracks the state of the proxy indicator update operation, representing the success state with the loaded
ProxyIndicatorResponsePayload
value or the failure state with the associatedNetworkError
. -
Retrieves customer details based on the provided proxy hash.
Declaration
Swift
@MainActor public func fetchProxyInfo( _ proxyHash: String, response: LoadableSubject<ProxyCustomerDetailsResponse> )
Parameters
proxyHash
The proxy hash to fetch the customer details for.
response
The loadable subject to track the response. The loadable subject tracks the state of the customer details retrieval operation, representing the success state with the loaded
ProxyCustomerDetailsResponse
value or the failure state with the associatedNetworkError
.