public class ChatRoomMemberJabberImpl extends java.lang.Object implements JabberChatRoomMember
Constructor and Description |
---|
ChatRoomMemberJabberImpl(ChatRoomJabberImpl containingChatRoom,
java.lang.String nickName,
java.lang.String jabberID)
Creates a jabber chat room member with the specified containing chat
room parent.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAvatar()
Returns the avatar of this member, that can be used when including it in
user interface.
|
java.lang.String |
getAvatarUrl() |
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.
|
(package private) ChatRoomMemberRole |
getCurrentRole()
Returns the current role without trying to query it in the stack.
|
java.lang.String |
getDisplayName() |
java.lang.String |
getEmail()
Return the email of this
ChatRoomMember . |
java.lang.String |
getJabberID()
Returns the jabber id of the member.
|
java.lang.String |
getName()
Returns the name of this member as it is known in its containing
chatroom (aka a nickname).
|
PresenceStatus |
getPresenceStatus()
Current presence status of 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 |
setAvatar(byte[] avatar)
Sets the avatar for this member.
|
(package private) void |
setAvatarUrl(java.lang.String avatarUrl)
Sets the avatar URL of this
ChatRoomMember . |
void |
setContact(Contact contact)
Sets the given contact to this member.
|
(package private) void |
setDisplayName(java.lang.String displayName)
Sets the display name of this
ChatRoomMember . |
(package private) void |
setEmail(java.lang.String email)
Sets the email of this
ChatRoomMember . |
protected void |
setName(java.lang.String newNick)
Update the name of this parcipant
|
void |
setRole(ChatRoomMemberRole role)
Sets the role of this member.
|
public ChatRoomMemberJabberImpl(ChatRoomJabberImpl containingChatRoom, java.lang.String nickName, java.lang.String jabberID)
containingChatRoom
- the room that this
ChatRoomMemberJabberImpl is a member of.nickName
- the nick name that the member is using to participate
in the chat roomjabberID
- the jabber id, if available, of the member or null
otherwise.public ChatRoom getChatRoom()
getChatRoom
in interface ChatRoomMember
public java.lang.String getJabberID()
getJabberID
in interface JabberChatRoomMember
public java.lang.String getContactAddress()
getContactAddress
in interface ChatRoomMember
public java.lang.String getName()
getName
in interface ChatRoomMember
protected void setName(java.lang.String newNick)
newNick
- the newNick of the participantpublic ProtocolProviderService getProtocolProvider()
getProtocolProvider
in interface ChatRoomMember
public ChatRoomMemberRole getRole()
getRole
in interface ChatRoomMember
ChatRoomMemberRole getCurrentRole()
public void setRole(ChatRoomMemberRole role)
setRole
in interface ChatRoomMember
role
- the role to setpublic byte[] getAvatar()
getAvatar
in interface ChatRoomMember
public void setAvatar(byte[] avatar)
avatar
- the avatar to set.public Contact getContact()
getContact
in interface ChatRoomMember
public void setContact(Contact contact)
contact
- the contact to set.public PresenceStatus getPresenceStatus()
getPresenceStatus
in interface ChatRoomMember
public java.lang.String getDisplayName()
getDisplayName
in interface ChatRoomMember
void setDisplayName(java.lang.String displayName)
ChatRoomMember
.displayName
- the display name to set.public java.lang.String getEmail()
ChatRoomMember
.ChatRoomMember
.void setEmail(java.lang.String email)
ChatRoomMember
.email
- the display name to set.public java.lang.String getAvatarUrl()
ChatRoomMember
.void setAvatarUrl(java.lang.String avatarUrl)
ChatRoomMember
.avatarUrl
- the value to set.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.