hyphenate_SDK4.0 4.6.0
hyphenate java IM SDK
Public Member Functions | Protected Attributes | List of all members
com.hyphenate.chat.EMContact Class Reference

Inherits Parcelable.

Public Member Functions

 EMContact (String username)
 
void setUsername (String username)
 
String getUsername ()
 
void setRemark (String remark)
 
String getRemark ()
 

Protected Attributes

String username
 

Detailed Description

EMContact is the object of contact.

Constructor & Destructor Documentation

◆ EMContact()

com.hyphenate.chat.EMContact.EMContact ( String  username)

Creates the EMContact object from username.

Parameters
usernameThe user ID.

Member Function Documentation

◆ getRemark()

String com.hyphenate.chat.EMContact.getRemark ( )

Gets the remark.

Returns
The remark.

◆ getUsername()

String com.hyphenate.chat.EMContact.getUsername ( )

Gets the username of the contact.

Returns
The username.

◆ setRemark()

void com.hyphenate.chat.EMContact.setRemark ( String  remark)

Sets the remark.

Parameters
remarkThe remark.

◆ setUsername()

void com.hyphenate.chat.EMContact.setUsername ( String  username)
Parameters
usernameuser name

Member Data Documentation

◆ username

String com.hyphenate.chat.EMContact.username
protected

The username assigned from the app. It identifies the user and should be unique in the app.


The documentation for this class was generated from the following file: