ViProduct

open class ViProduct: NSObject

Model to hold data for product card Based on the provided schema mapping and ViSenze API response, data will be populated in this class Represent a single product

  • im_name for image, identify this image in ViSenze API

    Declaration

    Swift

    public var im_name: String
  • underlying image. This take precendence over image url. If set, image url will be ignored

    Declaration

    Swift

    public var image: UIImage? = nil
  • image url to load

    Declaration

    Swift

    public var imageUrl : URL? = nil
  • label e.g. for product brand

    Declaration

    Swift

    public var label : String? = nil
  • heading e.g. for product title

    Declaration

    Swift

    public var heading: String? = nil
  • price

    Declaration

    Swift

    public var price: Float? = nil
  • discounted price

    Declaration

    Swift

    public var discountPrice : Float? = nil
  • meta data dictionary retrieved from visenze API

    Declaration

    Swift

    public var metadataDict: [String : Any]? = nil