FriendInfo

public class FriendInfo extends UserInfo

A class representing the Carrier friend information. Include the basic user information and the extra friend information.

Fields

MAX_LABEL_LEN

public static final int MAX_LABEL_LEN

Friend label name max length.

Constructors

FriendInfo

protected FriendInfo()

Methods

getConnectionStatus

public ConnectionStatus getConnectionStatus()

Get friend’s connection status.

Returns

The ConnectionStatus object.

getLabel

public String getLabel()

Get friend’s label name.

Returns

The friend’s label name.

getPresence

public PresenceStatus getPresence()

Get friend’s presence.

Returns

The presence of friend.

setConnectionStatus

public void setConnectionStatus(ConnectionStatus status)

Set friend’s connection status. This function will be called in Java JNI only.

Parameters
  • status – The ConnectionStatus object.

setLabel

public void setLabel(String label)

Set friend’s label name. This function will be called in Java JNI only.

Parameters
  • label – The new label to set.

setPresence

public void setPresence(PresenceStatus status)

Set friend’s presence. This function will be called in Java JNI only.

Parameters
  • status – The presence status.

toString

public String toString()

Get formatted debug description of current FriendInfo object.

Returns

The debug description of current FriendInfo object.