public class ChatRoomMemberIrcImpl extends java.lang.Object implements ChatRoomMember
Constructor and Description |
---|
ChatRoomMemberIrcImpl(ProtocolProviderServiceIrcImpl parentProvider,
ChatRoom chatRoom,
java.lang.String contactID,
java.lang.String ident,
java.lang.String hostname,
ChatRoomMemberRole chatRoomMemberRole,
IrcStatusEnum status)
Creates an instance of ChatRoomMemberIrcImpl, by specifying the
protocol provider, the corresponding chat room, where this member is
joined, the identifier of the contact (the nickname), the login, the
host name and finally the role that this contact has in the chat room.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addRole(ChatRoomMemberRole role)
Add a role.
|
boolean |
equals(java.lang.Object obj)
equality by provider protocol instance and contact ID.
|
byte[] |
getAvatar()
Returns null to indicate that there's no avatar attached to the IRC
member.
|
ChatRoom |
getChatRoom()
Returns the chat room that this member is participating in.
|
Contact |
getContact()
Get the corresponding contact for a chat room member if it exists.
|
java.lang.String |
getContactAddress()
Returns the contact identifier representing this contact.
|
java.lang.String |
getDisplayName() |
java.lang.String |
getHostname()
Return the contact host name.
|
java.lang.String |
getIdent()
Return the contact ident.
|
java.lang.String |
getName()
Returns the name of this member as it is known in its containing
chat room (i.e.
|
PresenceStatus |
getPresenceStatus()
Return the chat room member's most recent presence status.
|
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.
|
int |
hashCode() |
(package private) void |
removeRole(ChatRoomMemberRole role)
Remove a role.
|
void |
setName(java.lang.String newName)
Set a new name for this ChatRoomMember.
|
(package private) IrcStatusEnum |
setPresenceStatus(IrcStatusEnum status)
Set a new presence status.
|
void |
setRole(ChatRoomMemberRole chatRoomMemberRole)
Sets a new member role to this ChatRoomMember.
|
public ChatRoomMemberIrcImpl(ProtocolProviderServiceIrcImpl parentProvider, ChatRoom chatRoom, java.lang.String contactID, java.lang.String ident, java.lang.String hostname, ChatRoomMemberRole chatRoomMemberRole, IrcStatusEnum status)
parentProvider
- the protocol provider, to which the corresponding
chat room belongschatRoom
- the chat room, where this member is joinedcontactID
- the nickname of the memberident
- ident of memberhostname
- host name of memberchatRoomMemberRole
- the role that this member has in thestatus
- current presence status
corresponding chat roompublic 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 getIdent()
public java.lang.String getHostname()
public java.lang.String getName()
getName
in interface ChatRoomMember
public void setName(java.lang.String newName)
newName
- new name to set for chat room memberpublic ChatRoomMemberRole getRole()
getRole
in interface ChatRoomMember
public void setRole(ChatRoomMemberRole chatRoomMemberRole)
setRole
in interface ChatRoomMember
chatRoomMemberRole
- the role to be setvoid addRole(ChatRoomMemberRole role)
role
- the new rolevoid removeRole(ChatRoomMemberRole role)
role
- the revoked rolepublic byte[] getAvatar()
getAvatar
in interface ChatRoomMember
public Contact getContact()
getContact
in interface ChatRoomMember
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public PresenceStatus getPresenceStatus()
getPresenceStatus
in interface ChatRoomMember
IrcStatusEnum setPresenceStatus(IrcStatusEnum status)
status
- the new presence statuspublic java.lang.String getDisplayName()
getDisplayName
in interface ChatRoomMember
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.