ProxyRepositoryProtocol
public protocol ProxyRepositoryProtocol
A protocol for performing proxy operations.
-
Fetches proxy indicators based on collection of proxy hashes that reflect local contacts data.
Declaration
Swift
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
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
.