signal-cli/src/main/java/org/asamk/signal/json/JsonContactAvatar.java
2021-11-06 12:17:50 +01:00

10 lines
361 B
Java

package org.asamk.signal.json;
import org.asamk.signal.manager.api.MessageEnvelope;
public record JsonContactAvatar(JsonAttachment attachment, boolean isProfile) {
static JsonContactAvatar from(MessageEnvelope.Data.SharedContact.Avatar avatar) {
return new JsonContactAvatar(JsonAttachment.from(avatar.attachment()), avatar.isProfile());
}
}