2020-08-22 18:14:26 +02:00
|
|
|
package envoy.event;
|
|
|
|
|
2020-10-11 23:04:25 +02:00
|
|
|
import envoy.data.Group;
|
|
|
|
|
2020-08-22 18:14:26 +02:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* @author Leon Hofmeister
|
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
2020-10-11 23:04:25 +02:00
|
|
|
public class GroupCreationResult extends Event<Group> {
|
2020-08-22 18:14:26 +02:00
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
2020-10-11 23:04:25 +02:00
|
|
|
/**
|
|
|
|
* Creates a new {@code GroupCreationResult} that implies the failure of this
|
|
|
|
* {@link GroupCreationResult}.
|
|
|
|
*
|
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
|
|
|
public GroupCreationResult() { super(null); }
|
|
|
|
|
2020-08-22 18:14:26 +02:00
|
|
|
/**
|
|
|
|
* Creates a new {@code GroupCreationResult}.
|
|
|
|
*
|
2020-10-11 23:04:25 +02:00
|
|
|
* @param resultGroup the group the server created
|
2020-08-22 18:14:26 +02:00
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
2020-10-11 23:04:25 +02:00
|
|
|
public GroupCreationResult(Group resultGroup) { super(resultGroup); }
|
2020-08-22 18:14:26 +02:00
|
|
|
}
|