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.
-
This struct holds metadata about the page of meeting results, as reported by the server.
See moreDeclaration
Swift
public struct PageMeta : Encodable
-
This struct holds a single parsed meeting instance.
Note
There is a platform-dependent extension that adds the
directAppURI
computed property to this type.Declaration
Swift
public struct Meeting
extension SwiftBMLSDK_Parser.Meeting: Equatable
extension SwiftBMLSDK_Parser.Meeting: Hashable
extension SwiftBMLSDK_Parser.Meeting: CustomStringConvertible
extension SwiftBMLSDK_Parser.Meeting: CustomDebugStringConvertible
extension SwiftBMLSDK_Parser.Meeting: Encodable
extension SwiftBMLSDK_Parser.Meeting: SwiftBMLSDK_MeetingProtocol
-
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 }