ProxyRepository
public struct ProxyRepository : ProxyRepositoryProtocol
A repository for performing proxy operations.
-
Initializes the proxy repository with the specified networking client.
Declaration
Swift
public init(networkingClient: EPINetworkingClientProtocol)
Parameters
networkingClient
The networking client responsible for making API calls.
-
Fetches proxy indicators based on collection of proxy hashes that reflect local contacts data.
Declaration
Swift
public func fetchProxyIndicators(_ payload: ProxyIndicatorRequestPayload) -> AnyPublisher<ProxyIndicatorResponsePayload, NetworkError>
Parameters
payload
The payload containing the proxy hashes information.
Return Value
A publisher that emits the updated
ProxyIndicatorResponsePayload
or an error of typeNetworkError
. -
Retrieves proxy information for the specified proxy hash.
Declaration
Swift
public func fetchProxyInfo(_ proxyHash: String) -> AnyPublisher<ProxyCustomerDetailsResponse, NetworkError>
Parameters
proxyHash
The proxy hash for which to retrieve customer details.
Return Value
A publisher that emits the retrieved
ProxyCustomerDetailsResponse
or an error of typeNetworkError
.