|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.mock.MockChatRoomMember
public class MockChatRoomMember
| Constructor Summary | |
|---|---|
MockChatRoomMember(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. |
|
| Method Summary | |
|---|---|
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. |
String |
getContactAddress()
Returns the contact identifier representing this contact. |
String |
getName()
Returns the name of this member as it is known in its containing chatroom (aka a nickname). |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockChatRoomMember(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 member| Method Detail |
|---|
public ChatRoom getChatRoom()
getChatRoom in interface ChatRoomMemberpublic ProtocolProviderService getProtocolProvider()
getProtocolProvider in interface ChatRoomMemberpublic String getContactAddress()
getContactAddress in interface ChatRoomMemberpublic String getName()
getName in interface ChatRoomMemberpublic ChatRoomMemberRole getRole()
getRole in interface ChatRoomMemberpublic void setRole(ChatRoomMemberRole role)
setRole in interface ChatRoomMemberrole - the role to setpublic byte[] getAvatar()
getAvatar in interface ChatRoomMemberpublic Contact getContact()
getContact in interface ChatRoomMember
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||