Adder userId to Contacts

This commit is contained in:
Kai S. K. Engelbart 2020-01-02 17:46:20 +02:00
parent fe412fff66
commit 8b4205f222

View File

@ -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