Class MagicSearch
A MagicSearch is used to do specifics searchs.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class MagicSearch : LinphoneObject
Properties
Delimiter
Get the delimiter used for the search.
Declaration
public string Delimiter { get; set; }
Property Value
Type | Description |
---|---|
System.String | the delimiter used to find matched filter word |
LimitedSearch
Return whether or not the search is limited.
Declaration
public bool LimitedSearch { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the search is limited, false otherwise |
MaxWeight
Get the maximum value used to calculate the weight in search.
Declaration
public uint MaxWeight { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 | the maximum value used to calculate the weight in search |
MinWeight
Get the minimum value used to calculate the weight in search.
Declaration
public uint MinWeight { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 | the minimum value used to calculate the weight in search |
SearchLimit
Get the number of maximum search result the search will return.
Declaration
public uint SearchLimit { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 | the number of the maximum SearchResult which will be returned |
UseDelimiter
Returns whether the delimiter is being used for the search.
Declaration
public bool UseDelimiter { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | if the delimiter search is used |
Methods
GetContactListFromFilter(String, String)
Create a sorted list of SearchResult from SipUri, Contact name, Contact displayname, Contact phone number, which match with a filter word The last item list will be an address formed with "filter" if a proxy config exist During the first search, a cache is created and used for the next search Use ResetSearchCache() to begin a new search.
Declaration
public IEnumerable<SearchResult> GetContactListFromFilter(string filter, string domain)
Parameters
Type | Name | Description |
---|---|---|
System.String | filter | word we search |
System.String | domain | domain which we want to search only |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SearchResult> | sorted list of |
ResetSearchCache()
Reset the cache to begin a new search.
Declaration
public void ResetSearchCache()