Enabled clients to have groups as contacts

This commit is contained in:
delvh 2020-03-28 18:51:07 +01:00
parent f93b01f65a
commit 587a6ebe72

View File

@ -13,7 +13,7 @@ import java.util.List;
*/
public class Contacts implements Serializable {
private final List<User> contacts;
private final List<Contact> contacts;
private static final long serialVersionUID = 0L;
@ -23,7 +23,7 @@ public class Contacts implements Serializable {
* @param contacts the contact list
* @since Envoy Common v0.2-alpha
*/
public Contacts(List<User> contacts) { this.contacts = contacts; }
public Contacts(List<Contact> contacts) { this.contacts = contacts; }
@Override
public String toString() { return String.format("Contacts[%s]", contacts); }
@ -32,5 +32,5 @@ public class Contacts implements Serializable {
* @return a list of users messages can be sent to
* @since Envoy Common v0.2-alpha
*/
public List<User> getContacts() { return contacts; }
public List<Contact> getContacts() { return contacts; }
}