This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-01 10:00:29 +02:00
|
|
|
package envoy.event;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Leon Hofmeister
|
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
2020-08-22 13:37:07 +02:00
|
|
|
public final class ProfilePicChange extends Event<byte[]> {
|
2020-08-01 10:00:29 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-08-02 20:26:22 +02:00
|
|
|
* @return the ID of the user changing his profile pic
|
2020-08-01 10:00:29 +02:00
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
|
|
|
public long getId() { return id; }
|
|
|
|
}
|