CurrencyRequest
public class CurrencyRequest : MoltinRequest
An entry point to make API calls relating to Currency
-
The API endpoint for this resource.
Declaration
Swift
public var endpoint: String -
A typealias which allows automatic casting of a collection to
[Currency].Declaration
Swift
public typealias DefaultCollectionRequestHandler = CollectionRequestHandler<[Currency]> -
A typealias which allows automatic casting of an object to
Currency.Declaration
Swift
public typealias DefaultObjectRequestHandler = ObjectRequestHandler<Currency> -
Return all instances of type
CurrencyDeclaration
Swift
@discardableResult public func all(completionHandler: @escaping DefaultCollectionRequestHandler) -> MoltinRequestParameters
completionHandlerThe handler to be called on success or failure
Return Value
A instance of
MoltinRequestwhich encapsulates the request. -
Return all instances of type
CurrencybyidDeclaration
Swift
@discardableResult public func get(forID id: String, completionHandler: @escaping DefaultObjectRequestHandler) -> MoltinRequestParameters
forIDThe ID of the object
completionHandlerThe handler to be called on success or failure
Return Value
A instance of
MoltinRequestwhich encapsulates the request.
View on GitHub
CurrencyRequest Class Reference