mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-31 11:30:39 +00:00
Implement updateGroup
This commit is contained in:
parent
1689dfcb38
commit
fb862e4dde
4 changed files with 144 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue