hyphenate_SDK3.0 3.7.6.3
hyphenate java IM SDK
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
com.hyphenate.chat.EMContact Class Reference
Inheritance diagram for com.hyphenate.chat.EMContact:

Public Member Functions

 EMContact (String username)
 
String getUsername ()
 
void setNickname (String nick)
 
String getNickname ()
 
String toString ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 

Static Public Attributes

static final Parcelable.Creator< EMContactCREATOR
 

Protected Attributes

String username
 
String nick
 

Detailed Description

EMContact used to be object of contact, and this is base class

Constructor & Destructor Documentation

◆ EMContact()

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

generate EMConcact object from app username

Parameters
username

Member Function Documentation

◆ getNickname()

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

get nick name

Returns

◆ getUsername()

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

get username from contact

◆ setNickname()

void com.hyphenate.chat.EMContact.setNickname ( String  nick)

set nick name

Parameters
nick

Member Data Documentation

◆ CREATOR

final Parcelable.Creator<EMContact> com.hyphenate.chat.EMContact.CREATOR
static
Initial value:
= new Parcelable.Creator<EMContact>() {
public EMContact createFromParcel(Parcel in) {
return new EMContact(in);
}
public EMContact[] newArray(int size) {
return new EMContact[size];
}
}

◆ username

String com.hyphenate.chat.EMContact.username
protected

the user name assigned from app, which should be unique in the application


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