Removed user id from Contacts
This commit is contained in:
parent
9dbaedbc8d
commit
efe5fd30ce
@ -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
|
||||
|
Reference in New Issue
Block a user