ViSchemaHelper

public class ViSchemaHelper: NSObject

extract the products info from schema mapping

  • From ViSenze API response, load products information into [ViProduct] based on provided schema mapping

  • Parameters:

    • mapping: product schema mapping
    • imageResults: API response imageResults
  • Returns

    Array of products information

    Declaration

    Swift

    public static func parseProducts( mapping: ViProductSchemaMapping , imageResults: [ViImageResult]) -> [ViProduct]

    Parameters

    mapping

    product schema mapping

    imageResults

    API response imageResults

    Return Value

    Array of products information

  • From ViSenze API response, load products information into [ViProduct] based on provided schema mapping

  • Parameters:

    • mapping: product schema mapping
    • data: API response data
  • Returns

    Array of products information

    Declaration

    Swift

    public static func parseProducts(mapping: ViProductSchemaMapping, data: ViResponseData)
            -> [ViProduct]

    Parameters

    mapping

    product schema mapping

    data

    API response data

    Return Value

    Array of products information