Chat SDK for Android v1.3.1
agora java chat SDK
Public Member Functions | Protected Attributes | List of all members
io.agora.chat.Contact Class Reference

Inherits Parcelable.

Public Member Functions

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

Protected Attributes

String username
 

Detailed Description

Contact is the object of contact.

Constructor & Destructor Documentation

◆ Contact()

io.agora.chat.Contact.Contact ( String  username)

Creates the Contact object for the user ID.

Parameters
usernameThe user ID.

Member Function Documentation

◆ getRemark()

String io.agora.chat.Contact.getRemark ( )

Gets the remarks of the contact.

Returns
The remarks of the contact.

◆ getUsername()

String io.agora.chat.Contact.getUsername ( )

Gets the user ID of the contact.

Returns
The user ID of the contact.

◆ setRemark()

void io.agora.chat.Contact.setRemark ( String  remark)

Sets the remarks of the contact.

Parameters
remarkThe remarks of the contact.

◆ setUsername()

void io.agora.chat.Contact.setUsername ( String  username)
Parameters
usernameThe user ID.

Member Data Documentation

◆ username

String io.agora.chat.Contact.username
protected

The user ID 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: