CIOResultData

public struct CIOResultData

Struct encapsulating a result data object with additional information about the result

  • Description associated with the result item

    Declaration

    Swift

    public let description: String?
  • id

    Result Item ID

    Declaration

    Swift

    public let id: String?
  • url

    URL of the result item

    Declaration

    Swift

    public let url: String?
  • Image URL of the result item

    Declaration

    Swift

    public let imageURL: String?
  • Groups associated with the result item

    Declaration

    Swift

    public let groups: [CIOGroup]
  • Facets associated with the result item

    Declaration

    Swift

    public let facets: [CIOResultFacet]
  • Additioanl metadata associated with the result item

    Declaration

    Swift

    public let metadata: [String : Any]
  • Variation ID of the result item (if available)

    Declaration

    Swift

    public let variationId: String?
  • Create a result data object

    Declaration

    Swift

    init?(json: JSONObject)

    Parameters

    json

    JSON data from the server response