Added option to disable attachments and groups on both client and server
This commit is contained in:
		
							
								
								
									
										25
									
								
								common/src/main/java/envoy/event/GroupCreationResult.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								common/src/main/java/envoy/event/GroupCreationResult.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
package envoy.event;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Used to communicate with a client that his request to create a group might
 | 
			
		||||
 * have been rejected as it might be disabled on his current server.
 | 
			
		||||
 * <p>
 | 
			
		||||
 * Project: <strong>common</strong><br>
 | 
			
		||||
 * File: <strong>GroupCreationResult.java</strong><br>
 | 
			
		||||
 * Created: <strong>22.08.2020</strong><br>
 | 
			
		||||
 *
 | 
			
		||||
 * @author Leon Hofmeister
 | 
			
		||||
 * @since Envoy Common v0.2-beta
 | 
			
		||||
 */
 | 
			
		||||
public class GroupCreationResult extends Event<Boolean> {
 | 
			
		||||
 | 
			
		||||
	private static final long serialVersionUID = 1L;
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Creates a new {@code GroupCreationResult}.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param success whether the GroupCreation sent before was successful
 | 
			
		||||
	 * @since Envoy Common v0.2-beta
 | 
			
		||||
	 */
 | 
			
		||||
	public GroupCreationResult(boolean success) { super(success); }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										25
									
								
								common/src/main/java/envoy/event/NoAttachments.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								common/src/main/java/envoy/event/NoAttachments.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
package envoy.event;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * This event is used so that the server can tell the client that attachments
 | 
			
		||||
 * will be filtered out.
 | 
			
		||||
 * <p>
 | 
			
		||||
 * Project: <strong>common</strong><br>
 | 
			
		||||
 * File: <strong>NoAttachments.java</strong><br>
 | 
			
		||||
 * Created: <strong>22.08.2020</strong><br>
 | 
			
		||||
 *
 | 
			
		||||
 * @author Leon Hofmeister
 | 
			
		||||
 * @since Envoy Common v0.2-beta
 | 
			
		||||
 */
 | 
			
		||||
public class NoAttachments extends Event<Void> {
 | 
			
		||||
 | 
			
		||||
	private static final long serialVersionUID = 1L;
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Creates a new {@code NoAttachments}.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @since Envoy Common v0.2-beta
 | 
			
		||||
	 */
 | 
			
		||||
	public NoAttachments() { super(null); }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user