2020-03-28 15:21:02 +01:00
|
|
|
package envoy.event.contact;
|
2020-03-24 19:06:56 +01:00
|
|
|
|
2020-04-02 19:49:56 +02:00
|
|
|
import envoy.data.Contact;
|
2020-03-28 15:21:02 +01:00
|
|
|
import envoy.event.ElementOperation;
|
|
|
|
import envoy.event.Event;
|
2020-03-24 19:06:56 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Signifies the modification of a contact list.<br>
|
|
|
|
* <br>
|
|
|
|
* Project: <strong>envoy-common</strong><br>
|
2020-06-20 09:19:39 +02:00
|
|
|
* File: <strong>ContactOperation.java</strong><br>
|
2020-03-24 19:06:56 +01:00
|
|
|
* Created: <strong>05.02.2020</strong><br>
|
|
|
|
*
|
|
|
|
* @author Maximilian Käfer
|
|
|
|
* @since Envoy Common v0.2-alpha
|
|
|
|
*/
|
2020-06-20 09:19:39 +02:00
|
|
|
public class ContactOperation extends Event<Contact> {
|
2020-03-24 19:06:56 +01:00
|
|
|
|
2020-03-28 15:21:02 +01:00
|
|
|
private final ElementOperation operationType;
|
2020-03-24 19:06:56 +01:00
|
|
|
|
2020-03-28 15:21:02 +01:00
|
|
|
private static final long serialVersionUID = 1L;
|
2020-03-24 19:06:56 +01:00
|
|
|
|
|
|
|
/**
|
2020-06-20 09:19:39 +02:00
|
|
|
* Initializes a {@link ContactOperation}.
|
2020-03-24 19:06:56 +01:00
|
|
|
*
|
|
|
|
* @param contact the user on which the operation is performed
|
|
|
|
* @param operationType the type of operation to perform
|
|
|
|
* @since Envoy Common v0.2-alpha
|
|
|
|
*/
|
2020-06-20 09:19:39 +02:00
|
|
|
public ContactOperation(Contact contact, ElementOperation operationType) {
|
2020-03-24 19:06:56 +01:00
|
|
|
super(contact);
|
|
|
|
this.operationType = operationType;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the type of operation to perform
|
|
|
|
* @since Envoy Common v0.2-alpha
|
|
|
|
*/
|
2020-03-28 15:21:02 +01:00
|
|
|
public ElementOperation getOperationType() { return operationType; }
|
2020-03-24 19:06:56 +01:00
|
|
|
}
|