SearchConstraints

public enum SearchConstraints : CustomDebugStringConvertible, Codable

These are enums that describe the “main” search parameters.

  • No search constraints.

    Declaration

    Swift

    case none
  • This means that the search will sweep up every meeting within radiusInMeters meters of centerLongLat.

    Declaration

    Swift

    case fixedRadius(centerLongLat: CLLocationCoordinate2D, radiusInMeters: CLLocationDistance)
  • This means that the search will start at centerLongLat, and move outward, in “rings,” until it gets at least the minimumNumberOfResults number of meetings, and will stop there. We deliberately do not specify the “width” of these “rings,” because the server may have its own ideas. A conformant implementation of the initiator could be used to allow the width to be specified.

    Declaration

    Swift

    case autoRadius(centerLongLat: CLLocationCoordinate2D, minimumNumberOfResults: UInt, maxRadiusInMeters: CLLocationDistance)
  • This is a very basic Array of individual meeting IDs.

    Declaration

    Swift

    case meetingID(ids: [UInt64])
  • This is very similar to the autoRadius search (in fact, it is used, internally), but it looks for meetings happening soon after the current time.

    Declaration

    Swift

    case nextMeetings(centerLongLat: CLLocationCoordinate2D, minimumNumberOfResults: UInt, maxRadiusInMeters: CLLocationDistance)
  • CustomDebugStringConvertible Conformance

    Declaration

    Swift

    public var debugDescription: String { get }

Codable Conformance

  • Returns the parameter storage index for the type.

    Declaration

    Swift

    private static func _typeIndex(for inCase: `Self`) -> Int

    Parameters

    for

    The case we are checking.

Coding Keys Enum

  • This enum defines the keys for the Codable protocol

    See more

    Declaration

    Swift

    enum CodingKeys : String, CodingKey

Encodable Conformance

  • Stores the state into an Encoder.

    Declaration

    Swift

    public func encode(to inEncoder: Encoder) throws

    Parameters

    to

    The Encoder instance that will hold the data.

Decodable Conformance

  • Initializes from a decoder.

    Declaration

    Swift

    public init(from inDecoder: Decoder) throws

    Parameters

    from

    The Decoder instance that has our state.