public class MockChatRoomMember extends java.lang.Object implements ChatRoomMember
Constructor and Description |
---|
MockChatRoomMember(java.lang.String name,
ChatRoom chatRoom,
ChatRoomMemberRole role,
Contact contact,
byte[] avatar)
Creates an instance of MockChatRoomMember by specifying the
name of the member, the chatRoom, to which it belongs,
its role in the room, the contact corresponding to it
and its avatar.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAvatar()
Returns the avatar of this member, that can be used when including it in
user interface.
|
ChatRoom |
getChatRoom()
Returns the chat room that this member is participating in.
|
Contact |
getContact()
Returns the protocol contact corresponding to this member in our contact
list.
|
java.lang.String |
getContactAddress()
Returns the contact identifier representing this contact.
|
java.lang.String |
getDisplayName() |
java.lang.String |
getName()
Returns the name of this member as it is known in its containing
chatroom (aka a nickname).
|
PresenceStatus |
getPresenceStatus()
Returns status for fully available mock chat room member.
|
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider instance that this member has originated
in.
|
ChatRoomMemberRole |
getRole()
Returns the role of this chat room member in its containing room.
|
void |
setRole(ChatRoomMemberRole role)
Sets the role of this member.
|
public MockChatRoomMember(java.lang.String name, ChatRoom chatRoom, ChatRoomMemberRole role, Contact contact, byte[] avatar)
name
- the name of the memberchatRoom
- the chat room to which the member belongsrole
- the role of the member in the roomcontact
- the contact corresponding to this member in the local
contact listavatar
- the avatar of the memberpublic ChatRoom getChatRoom()
getChatRoom
in interface ChatRoomMember
public ProtocolProviderService getProtocolProvider()
getProtocolProvider
in interface ChatRoomMember
public java.lang.String getContactAddress()
getContactAddress
in interface ChatRoomMember
public java.lang.String getName()
getName
in interface ChatRoomMember
public ChatRoomMemberRole getRole()
getRole
in interface ChatRoomMember
public void setRole(ChatRoomMemberRole role)
setRole
in interface ChatRoomMember
role
- the role to setpublic byte[] getAvatar()
getAvatar
in interface ChatRoomMember
public Contact getContact()
getContact
in interface ChatRoomMember
public PresenceStatus getPresenceStatus()
getPresenceStatus
in interface ChatRoomMember
public java.lang.String getDisplayName()
getDisplayName
in interface ChatRoomMember
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.