2020-01-02 16:03:58 +01:00
|
|
|
package envoy.data;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Project: <strong>envoy-common</strong><br>
|
|
|
|
* File: <strong>Contacts.java</strong><br>
|
|
|
|
* Created: <strong>02.01.2020</strong><br>
|
2020-02-10 21:44:20 +01:00
|
|
|
*
|
2020-01-02 16:03:58 +01:00
|
|
|
* @author Kai S. K. Engelbart
|
|
|
|
* @since Envoy Common v0.2-alpha
|
|
|
|
*/
|
|
|
|
public class Contacts implements Serializable {
|
|
|
|
|
2020-03-28 18:51:07 +01:00
|
|
|
private final List<Contact> contacts;
|
2020-01-02 16:03:58 +01:00
|
|
|
|
2020-03-25 17:43:55 +01:00
|
|
|
private static final long serialVersionUID = 0L;
|
2020-01-02 16:03:58 +01:00
|
|
|
|
2020-01-02 17:50:04 +01:00
|
|
|
/**
|
|
|
|
* Creates an instance of {@link Contacts}.
|
|
|
|
*
|
|
|
|
* @param contacts the contact list
|
|
|
|
* @since Envoy Common v0.2-alpha
|
|
|
|
*/
|
2020-03-28 18:51:07 +01:00
|
|
|
public Contacts(List<Contact> contacts) { this.contacts = contacts; }
|
2020-01-02 17:50:04 +01:00
|
|
|
|
2020-01-02 16:46:20 +01:00
|
|
|
@Override
|
|
|
|
public String toString() { return String.format("Contacts[%s]", contacts); }
|
|
|
|
|
2020-01-02 16:03:58 +01:00
|
|
|
/**
|
|
|
|
* @return a list of users messages can be sent to
|
|
|
|
* @since Envoy Common v0.2-alpha
|
|
|
|
*/
|
2020-03-28 18:51:07 +01:00
|
|
|
public List<Contact> getContacts() { return contacts; }
|
2020-01-02 16:03:58 +01:00
|
|
|
}
|