SwiftBMLSDK_Parser

public struct SwiftBMLSDK_Parser : Encodable

This struct will contain one page of results from a meeting search, and is one of the response parameters to the QueryResultCompletion completion callback.

This is a baseline parser; it doesn’t really do anything more than make a simple map of the input JSON into an array of structs. It doesn’t change the sorting, and provides a read-only, struct property view.

The parser then automatically populates a meta instance, that reports the page metadata from the server, and a meetings array, of all meeting instances, and some functional interfaces.

Supported Systems

This will support iOS 16 (and greater), iPadOS 16 (and greater), tvOS 16 (and greater), macOS 13 (and greater), and watchOS 9 (and greater)

This requires Swift 5 or greater.

Usage

Do not instantiate this type. That’s handled by a SwiftBMLSDK_Query instance that performs a search, and returns an instance of this struct.

Dependencies

This parser has no dependencies, other than the Foundation, CoreLocation, and Contacts SDKs, provided by Apple.

Page Metadata Container

  • This struct holds metadata about the page of meeting results, as reported by the server.

    See more

    Declaration

    Swift

    public struct PageMeta : Encodable

Meeting Data Container

Public Immutable Properties

  • The page metadata for this page of meetings.

    Declaration

    Swift

    public let meta: PageMeta
  • The meeting data for this page of meetings.

    Declaration

    Swift

    public let meetings: [Meeting]

Parser Extensions

  • Returns meetings that have an in-person component.

    Declaration

    Swift

    var inPersonMeetings: [Meeting] { get }
  • Returns meetings that are only in-person.

    Declaration

    Swift

    var inPersonOnlyMeetings: [Meeting] { get }
  • Returns meetings that have a virtual component.

    Declaration

    Swift

    var virtualMeetings: [Meeting] { get }
  • Returns meetings that are only virtual.

    Declaration

    Swift

    var virtualOnlyMeetings: [Meeting] { get }
  • Returns meetings that are only hybrid.

    Declaration

    Swift

    var hybridMeetings: [Meeting] { get }