This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
envoy/src/main/java/envoy/data/Contacts.java

37 lines
873 B
Java
Raw Normal View History

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 {
private final List<Contact> contacts;
2020-01-02 16:03:58 +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
*/
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
*/
public List<Contact> getContacts() { return contacts; }
2020-01-02 16:03:58 +01:00
}