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