TNEntitySuggestionParams
@objcMembers
open class TNEntitySuggestionParams : NSObject
Undocumented
-
The anchor location from where suggest results will be based
Declaration
Swift
public var location: TNEntityGeoPoint?
-
The suggestion text in the form of a partial query
Declaration
Swift
public var searchQuery: String
-
Controls whenever Entity details would also be returned
Declaration
Swift
public var includeEntity: Bool
-
Max number of entities that will be returned from request
Declaration
Swift
public var limit: Int
-
Undocumented
Declaration
Swift
public override init()
-
Undocumented
Declaration
Swift
public init(searchQuery: String, location: TNEntityGeoPoint?, includeEntity: Bool = false)
-
Validates all properties.
Declaration
Swift
public func validate() -> (isValid: Bool, message: String)
Return Value
Tuple
(isValid: Bool, message: String)
.isValid
- is true if validation was successfulmessage
- contains error string if validation failed