Package org.linphone.core
Interface SearchResult
public interface SearchResult
-
Method Summary
Modifier and TypeMethodDescriptionGets the address of the search result if any.intReturns the capabilities mask of the search result.Gets the friend of the search result if any.longGets the native pointer used by this class to make native method calls.Gets the phone number of the search result if any.intGets source flags of the search result.Gets the object stored in this object user's dataintGets the weight of the search result.booleanhasCapability(Friend.Capability capability) Returns whether or not the search result has the given capability.booleanhasSourceFlag(MagicSearch.Source source) Returns whether or not the search result has the given source flag.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getAddress
Gets the address of the search result if any.
- Returns:
- The associed
Addressor null.
-
getCapabilities
int getCapabilities()Returns the capabilities mask of the search result.
- Returns:
- the capabilities mask associated to the search result
-
getFriend
Gets the friend of the search result if any.
- Returns:
- The associated
Friendor null.
-
getPhoneNumber
Gets the phone number of the search result if any.
- Returns:
- The associed phone number or null.
-
getSourceFlags
int getSourceFlags()Gets source flags of the search result.
- Returns:
- the source flags from
MagicSearch#Source
-
getWeight
int getWeight()Gets the weight of the search result.
- Returns:
- the result weight
-
hasCapability
Returns whether or not the search result has the given capability.
- Parameters:
capability- theFriend#Capabilityto check- Returns:
- true if it has the capability, false otherwise.
-
hasSourceFlag
Returns whether or not the search result has the given source flag.
- Parameters:
source- theMagicSearch#Sourceto check- Returns:
- true if it has the source flag, false otherwise.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-