Added profile pic change mechanism on client and common side

This commit is contained in:
delvh
2020-08-01 10:00:29 +02:00
parent 2af098fb28
commit fc63ea0a46
3 changed files with 96 additions and 1 deletions

View File

@ -0,0 +1,33 @@
package envoy.event;
/**
* Project: <strong>envoy-common</strong><br>
* File: <strong>ProfilePicChange.java</strong><br>
* Created: <strong>31.07.2020</strong><br>
*
* @author Leon Hofmeister
* @since Envoy Common v0.2-beta
*/
public class ProfilePicChange extends Event<byte[]> {
private final long id;
private static final long serialVersionUID = 0L;
/**
* @param value the byte[] of the new image
* @param userID the ID of the user who changed his profile pic
* @since Envoy Common v0.2-beta
*/
public ProfilePicChange(byte[] value, long userID) {
super(value);
id = userID;
}
/**
* @return the id
* @since Envoy Common v0.2-beta
*/
public long getId() { return id; }
}