Added profile pic change mechanism on client and common side
This commit is contained in:
		
							
								
								
									
										33
									
								
								common/src/main/java/envoy/event/ProfilePicChange.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								common/src/main/java/envoy/event/ProfilePicChange.java
									
									
									
									
									
										Normal 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; }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user