HereSDKDemandPriceRange

@interface HereSDKDemandPriceRange : NSObject

A class representing a price range

  • The maximum numeric value of the price range

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSDecimalNumber *_Nonnull upperBound;

    Swift

    var upperBound: NSDecimalNumber { get }
  • The minimum numeric value of the price range

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSDecimalNumber *_Nonnull lowerBound;

    Swift

    var lowerBound: NSDecimalNumber { get }
  • The price range’s ISO 4217 currency code

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull currency;

    Swift

    var currency: String { get }
  • Creates a HereSDKDemandPriceRange instance with given parameters.

    Declaration

    Objective-C

    + (nonnull instancetype)
    priceRangeWithUpperBound:(nonnull NSDecimalNumber *)upperBound
                  lowerBound:(nonnull NSDecimalNumber *)lowerBound
                    currency:(nonnull NSString *)currency;

    Swift

    convenience init(upperBound: NSDecimalNumber, lowerBound: NSDecimalNumber, currency: String)

    Parameters

    upperBound

    The maximum numeric value of the price range

    lowerBound

    The minimum numeric value of the price range

    currency

    The price range’s ISO 4217 currency code

    Return Value

    A new instance of HereSDKDemandPriceRange