public class MetaContactAvatarUpdateEvent extends MetaContactPropertyChangeEvent
META_CONTACT_AVATAR_UPDATE, META_CONTACT_MODIFIED, META_CONTACT_MOVED, META_CONTACT_RENAMED, PROTO_CONTACT_ADDED, PROTO_CONTACT_MODIFIED, PROTO_CONTACT_MOVED, PROTO_CONTACT_REMOVED
Constructor and Description |
---|
MetaContactAvatarUpdateEvent(MetaContact source,
byte[] oldAvatar,
byte[] newAvatar)
Creates an instance of this event using the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getNewAvatar()
Returns the updated avatar of the source meta contact as it is now, after
the change.
|
byte[] |
getOldAvatar()
Returns the previously active avatar of the source meta contact as it was
now, before the change.
|
getSourceMetaContact
public MetaContactAvatarUpdateEvent(MetaContact source, byte[] oldAvatar, byte[] newAvatar)
source
- the MetaContact that this event is about.oldAvatar
- the new avatar just of this meta contact.newAvatar
- the old avatar that just got replaced or null.public byte[] getNewAvatar()
public byte[] getOldAvatar()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.