Implement updateGroup

This commit is contained in:
AsamK 2015-11-26 17:02:28 +01:00
parent 1689dfcb38
commit fb862e4dde
4 changed files with 144 additions and 25 deletions

View file

@ -2,9 +2,9 @@ package cli;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.HashSet;
import java.util.Set;
public class GroupInfo {
@JsonProperty
@ -14,11 +14,15 @@ public class GroupInfo {
public String name;
@JsonProperty
public List<String> members = new ArrayList<>();
public Set<String> members = new HashSet<>();
@JsonProperty
public long avatarId;
public GroupInfo(byte[] groupId) {
this.groupId = groupId;
}
public GroupInfo(@JsonProperty("groupId") byte[] groupId, @JsonProperty("name") String name, @JsonProperty("members") Collection<String> members, @JsonProperty("avatarId") long avatarId) {
this.groupId = groupId;
this.name = name;