Parser
public class Parser
extension LGV_MeetingSDK_LGV_MeetingServer.Transport.Parser: LGV_MeetingSDK_Parser_Protocol
This is the parser. Most functionality will be in the extension.
-
The initiator, for creating search commands. We declare the stored property private, and specific to the class, so we can weakly reference it.
Declaration
Swift
private weak var _initiator: Initiator?
-
The initiator, for creating search commands.
Declaration
Swift
public var initiator: LGV_MeetingSDK_SearchInitiator_Protocol? { get set }
-
Creates (or not) a virtual location, based on the provided meeting details.
Declaration
Swift
private static func _convert(thisDataToAVirtualLocation inMeetingData: [String : String]) -> LGV_MeetingSDK_LGV_MeetingServer.Meeting.VirtualLocation?
Parameters
theseMeetings
The Dictionary that represents this meeting.
Return Value
A new virtual location instance.
-
This converts “raw” (String Dictionary) meeting objects, into actual Swift structs.
Declaration
Swift
private static func _convert(thisDataToAPhysicalLocation inMeetingData: [String : String], coords inCoords: CLLocationCoordinate2D) -> LGV_MeetingSDK_LGV_MeetingServer.Meeting.PhysicalLocation?
Parameters
thisDataToAPhysicalLocation
The Dictionary of String Dictionaries that represent the parsed JSON object for the meetings.
coords
The meeting coordinates.
Return Value
A new physical location instance.
-
This converts “raw” (String Dictionary) meeting objects, into actual Swift structs.
Declaration
Swift
private static func _convert(theseFormats inJSONParsedFormats: [[String : Any]]) -> [LGV_MeetingSDK_Format_Protocol]
Parameters
theseFormats
The Dictionary of String Dictionaries that represent the parsed JSON object for the formats.
Return Value
An Array of parsed and initialized format instances.
-
This converts “raw” (String Dictionary) meeting objects, into actual Swift structs.
Declaration
Swift
private func _convert(theseMeetings inJSONParsedMeetings: [[String : Any]], searchCenter inSearchCenter: CLLocation) -> [LGV_MeetingSDK.Meeting]
Parameters
theseMeetings
The Dictionary of String Dictionaries that represent the parsed JSON object for the meetings.
Return Value
An Array of parsed and initialized meeting instances.
-
REQUIRED - This parses data, and returns meetings.
Declaration
Swift
public func parseThis(searchType inSearchType: LGV_MeetingSDK_Meeting_Data_Set.SearchConstraints = .none, searchRefinements inSearchRefinements: Set<LGV_MeetingSDK_Meeting_Data_Set.Search_Refinements> = [], data inData: Data, refCon inRefCon: Any?, completion inCompletion: @escaping LGV_MeetingSDK_SearchInitiator_Protocol.MeetingSearchCallbackClosure)
Parameters
data
The unparsed data, from the transport. It should consist of a meeting data set.
refCon
An arbitrary data attachment to the search. This will be returned in the search results set.
completion
A callback, for when the parse is complete. This is escaping, and may not be called in the main thread.