Adder userId to Contacts
This commit is contained in:
parent
0f19a03cdc
commit
9f2a245ce8
@ -13,10 +13,26 @@ import java.util.List;
|
||||
*/
|
||||
public class Contacts implements Serializable {
|
||||
|
||||
private List<User> contacts;
|
||||
private long userId;
|
||||
private List<User> contacts;
|
||||
|
||||
private static final long serialVersionUID = 136970804968152871L;
|
||||
|
||||
@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; }
|
||||
|
||||
/**
|
||||
* @param userId the ID of the user this contacts belong to
|
||||
* @since Envoy Common v0.2-alpha
|
||||
*/
|
||||
public void setUserId(long userId) { this.userId = userId; }
|
||||
|
||||
/**
|
||||
* @return a list of users messages can be sent to
|
||||
* @since Envoy Common v0.2-alpha
|
||||
|
Reference in New Issue
Block a user