Classes
The following classes are available globally.
-
See moreAPIErroris used as a generic wrapper for all kinds of API errors.Declaration
Swift
open class APIError : LocalizedError, ErrorSerializable, DownloadErrorSerializable -
See moreAPIRequestencapsulates request creation logic, stubbing options, and response/error parsing.Declaration
Swift
open class APIRequest<Model, ErrorModel> : BaseRequest<Model, ErrorModel> where ErrorModel : ErrorSerializable -
See moreAPIStubinstance that is used to represent stubbed response. Any properties of this class is presented to serialization classes as if they would be received by URL loading system.Declaration
Swift
open class APIStub -
Base class, that contains common functionality, extracted from
See moreAPIRequestandMultipartAPIRequest.Declaration
Swift
open class BaseRequest<Model, ErrorModel> -
See moreUploadAPIRequestencapsulates upload request creation logic, stubbing options, and response/error parsing.Declaration
Swift
open class UploadAPIRequest<Model, ErrorModel> : BaseRequest<Model, ErrorModel> where ErrorModel : ErrorSerializable -
See moreDownloadAPIRequestencapsulates download request creation logic, stubbing options, and response/error parsing.Declaration
Swift
open class DownloadAPIRequest<Model, ErrorModel> : BaseRequest<Model, ErrorModel> where ErrorModel : DownloadErrorSerializable -
TRONis a root object, that serves as a provider for single API endpoint. It is used to create and configure instances ofAPIRequestandMultipartAPIRequest.You need to hold strong reference to
See moreTRONinstance while your network requests are running.Declaration
Swift
open class TRON : TronDelegate -
See moreCodableParseris a wrapper aroundmodelDecoderanderrorDecoderJSONDecoders to be used when decoding JSON response.Declaration
Swift
open class CodableParser<Model> : DataResponseSerializerProtocol where Model : Decodable -
Serializer for objects, that conform to
See moreDecodableprotocol.Declaration
Swift
open class CodableSerializer -
See moreURLBuilderconstructs resulting URL by callingURLByAppendingPathComponentmethod on baseURL.Declaration
Swift
open class URLBuilder
View on GitHub
Install in Dash
Classes Reference