OpenMetaverse Protocol Library Developers API Documentation
StartClassifiedSearch Method (searchText, category, queryFlags)
NamespacesOpenMetaverse DirectoryManagerStartClassifiedSearch(String, DirectoryManager . . :: . . ClassifiedCategories, DirectoryManager . . :: . . ClassifiedQueryFlags)
Query the data server for a list of classified ads which contain specified keywords (Overload) The [!:OnClassifiedReply]event is raised when a response is received from the simulator
Declaration Syntax
Parameters
searchText ( String)
A string containing a list of keywords to search for
category ( DirectoryManager . . :: . . ClassifiedCategories)
The category to search
queryFlags ( DirectoryManager . . :: . . ClassifiedQueryFlags)
A set of flags which can be ORed to modify query options such as classified maturity rating.
Return Value
A UUID to correlate the results when the [!:OnClassifiedReply]event is raised
Remarks
Responses are sent 16 at a time, there is no way to know how many results a query reply will contain however assuming the reply packets arrived ordered, a response with less than 16 entries would indicate all results have been received
Examples
Search classified ads containing the key words "foo" and "bar" in the "Any" category that are either PG or Mature
  Copy imageCopy
UUID searchID = StartClassifiedSearch(
"foo bar",
ClassifiedCategories.Any, ClassifiedQueryFlags.PG |
ClassifiedQueryFlags.Mature);

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)