mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 10:04:23 +01:00
33 lines
807 B
Java
33 lines
807 B
Java
package org.asamk.textsecure;
|
|
|
|
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;
|
|
}
|
|
}
|