1 package org
.asamk
.signal
;
3 import org
.whispersystems
.signalservice
.api
.messages
.SignalServiceAttachment
;
4 import org
.whispersystems
.signalservice
.api
.messages
.SignalServiceAttachmentPointer
;
12 JsonAttachment(SignalServiceAttachment attachment
) {
13 this.contentType
= attachment
.getContentType();
14 final SignalServiceAttachmentPointer pointer
= attachment
.asPointer();
15 if (attachment
.isPointer()) {
16 this.id
= pointer
.getId();
17 if (pointer
.getSize().isPresent()) {
18 this.size
= pointer
.getSize().get();