Skip to content

AnyResponse

bigearsenal edited this page May 17, 2022 · 1 revision

AnyResponse

Class is used to wrap Entity to not be responsible from a concrete type

public struct AnyResponse<Entity: Decodable>: APIClientResponse 

Inheritance

APIClientResponse

Initializers

init(_:)

public init<T: APIClientResponse>(_ response: T) where T.Entity == Entity 

Properties

result

public var result: Entity?

error

public var error: ResponseError?
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally