Add avatar image storage

Group and contact avatars are now stored in the avatars subfolder
of the settings path:
- contact-NUMBER
- group-GROUP_ID
This commit is contained in:
AsamK 2016-06-19 20:58:01 +02:00
parent 9427616906
commit 3e2024ff0a
3 changed files with 136 additions and 33 deletions

View file

@ -1,5 +1,6 @@
package org.asamk.signal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
@ -16,8 +17,12 @@ public class GroupInfo {
@JsonProperty
public Set<String> members = new HashSet<>();
@JsonProperty
public long avatarId;
private long avatarId;
@JsonIgnore
public long getAvatarId() {
return avatarId;
}
@JsonProperty
public boolean active;