ZKExchangeRate
Objective-C
@interface ZKExchangeRate : NSObject
Swift
class ZKExchangeRate : NSObject
Record containing Zumo exchange rates for information purposes only. Can be used to display amounts in local currency to the user.
-
Declaration
Objective-C
- (nonnull instancetype)initWithId:(nonnull NSString *)id fromCurrency:(nonnull NSString *)fromCurrency toCurrency:(nonnull NSString *)toCurrency value:(nonnull NSDecimalNumber *)value timestamp:(int32_t)timestamp;Swift
init(id: String, fromCurrency: String, toCurrency: String, value: NSDecimalNumber, timestamp: Int32) -
Declaration
Objective-C
+ (nonnull instancetype)exchangeRateWithId:(nonnull NSString *)id fromCurrency:(nonnull NSString *)fromCurrency toCurrency:(nonnull NSString *)toCurrency value:(nonnull NSDecimalNumber *)value timestamp:(int32_t)timestamp; -
Identifier.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *id;Swift
var id: String { get } -
Deposit currency.
See
ZKCurrencyCodeDeclaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *fromCurrency;Swift
var fromCurrency: String { get } -
Target currency.
See
ZKCurrencyCodeDeclaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *toCurrency;Swift
var toCurrency: String { get } -
Value of 1 unit of deposit currency in target currency.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSDecimalNumber *value;Swift
var value: NSDecimalNumber { get } -
Epoch timestamp when the exchange rate was issued.
Declaration
Objective-C
@property (nonatomic, readonly) int32_t timestamp;Swift
var timestamp: Int32 { get }
View on GitHub
ZKExchangeRate Class Reference