Classes
The following classes are available globally.
-
See moreAPIError
is used as a generic wrapper for all kinds of API errors.Declaration
Swift
open class APIError : LocalizedError, ErrorSerializable, DownloadErrorSerializable
-
See moreAPIRequest
encapsulates request creation logic, stubbing options, and response/error parsing.Declaration
Swift
open class APIRequest<Model, ErrorModel> : BaseRequest<Model, ErrorModel> where ErrorModel : ErrorSerializable
-
See moreAPIStub
instance 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 moreAPIRequest
andMultipartAPIRequest
.Declaration
Swift
open class BaseRequest<Model, ErrorModel>
-
See moreUploadAPIRequest
encapsulates upload request creation logic, stubbing options, and response/error parsing.Declaration
Swift
open class UploadAPIRequest<Model, ErrorModel> : BaseRequest<Model, ErrorModel> where ErrorModel : ErrorSerializable
-
See moreDownloadAPIRequest
encapsulates download request creation logic, stubbing options, and response/error parsing.Declaration
Swift
open class DownloadAPIRequest<Model, ErrorModel> : BaseRequest<Model, ErrorModel> where ErrorModel : DownloadErrorSerializable
-
TRON
is a root object, that serves as a provider for single API endpoint. It is used to create and configure instances ofAPIRequest
andMultipartAPIRequest
.You need to hold strong reference to
See moreTRON
instance while your network requests are running.Declaration
Swift
open class TRON : TronDelegate
-
See moreCodableParser
is a wrapper aroundmodelDecoder
anderrorDecoder
JSONDecoders to be used when decoding JSON response.Declaration
Swift
open class CodableParser<Model> : DataResponseSerializerProtocol where Model : Decodable
-
Serializer for objects, that conform to
See moreDecodable
protocol.Declaration
Swift
open class CodableSerializer
-
See moreURLBuilder
constructs resulting URL by callingURLByAppendingPathComponent
method on baseURL.Declaration
Swift
open class URLBuilder