BookingItemSearchResult

public struct BookingItemSearchResult : Decodable

A result model representing the BookingItems that were fetched for a given BookingItemSearchQuery

  • The total number of catalog items matching the given query

    Declaration

    Swift

    public let total: Int
  • An Array<BookingItem> representing the results of the query

    Declaration

    Swift

    public let items: [Int : BookingItem]
  • A Facets object that informs how the data could be filtered further

    Declaration

    Swift

    public let facets: Facets
  • The BookingItemQuery that returns this result

    Declaration

    Swift

    public let query: BookingItemQuery?
  • Undocumented

    Declaration

    Swift

    public func isResultEquivalent(to: BookingItemSearchResult) -> Bool
  • Undocumented

    Declaration

    Swift

    public func merge(_ result: BookingItemSearchResult) -> BookingItemSearchResult?
  • Declaration

    Swift

    public init(from decoder: Decoder) throws