Search_Refinements

public enum Search_Refinements : CustomDebugStringConvertible, Hashable, Codable

The main search can have “refinements” applied, that filter the response further.

  • This means don’t apply any refinements to the main search.

    Declaration

    Swift

    case none
  • This allows us to provide a filter for the venue type, in our search.

    Declaration

    Swift

    case venueTypes(Set<LGV_MeetingSDK_VenueType_Enum>)
  • This allows us to specify certain weekdays to be returned.

    Declaration

    Swift

    case weekdays(Set<Weekdays>)
  • This allows us to specify a range of times, from 0000 (midnight this morning), to 2400 (midnight tonight), inclusive. The times are specified in seconds (0…86400). Meetings that start within this range will be returned.

    Declaration

    Swift

    case startTimeRange(ClosedRange<TimeInterval>)
  • This allows a string to be submitted for a search.

    Declaration

    Swift

    case string(searchString: String)
  • We can specify a location that can be used as a “fulcrum,” from which to measure distance to the results.

    Note

    The parameter cannot be (0, 0), as that is considered an “invalid” location.

    Declaration

    Swift

    case distanceFrom(thisLocation: CLLocationCoordinate2D)
  • CustomDebugStringConvertible Conformance

    Declaration

    Swift

    public var debugDescription: String { get }
  • Used to make sure that we can only have one of each, regardless of associated values.

    Declaration

    Swift

    public var hashKey: String { get }
  • Equatable Conformance

    Declaration

    Swift

    public static func == (lhs: `Self`, rhs: `Self`) -> Bool
  • Hashable Conformance

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)

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.