Removed user id from Contacts

This commit is contained in:
DieGurke 2020-02-08 13:44:05 +01:00
parent d6a4378db9
commit e443c9149a

View File

@ -13,7 +13,6 @@ import java.util.List;
*/
public class Contacts implements Serializable {
private final long userId;
private final List<User> contacts;
private static final long serialVersionUID = 136970804968152871L;
@ -25,20 +24,13 @@ public class Contacts implements Serializable {
* @param contacts the contact list
* @since Envoy Common v0.2-alpha
*/
public Contacts(long userId, List<User> contacts) {
this.userId = userId;
public Contacts(List<User> contacts) {
this.contacts = contacts;
}
@Override
public String toString() { return String.format("Contacts[%s]", contacts); }
/**
* @return the ID of the user this contacts belong to
* @since Envoy Common v0.2-alpha
*/
public long getUserId() { return userId; }
/**
* @return a list of users messages can be sent to
* @since Envoy Common v0.2-alpha