mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Rename to signal-cli
Changes experimental dbus interface from org.asamk.TextSecure to org.asamk.Signal
This commit is contained in:
parent
10719a443a
commit
eabd361405
27 changed files with 108 additions and 108 deletions
32
src/main/java/org/asamk/signal/GroupInfo.java
Normal file
32
src/main/java/org/asamk/signal/GroupInfo.java
Normal file
|
@ -0,0 +1,32 @@
|
|||
package org.asamk.signal;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
public class GroupInfo {
|
||||
@JsonProperty
|
||||
public final byte[] groupId;
|
||||
|
||||
@JsonProperty
|
||||
public String name;
|
||||
|
||||
@JsonProperty
|
||||
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;
|
||||
this.members.addAll(members);
|
||||
this.avatarId = avatarId;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue