public class ImmutableAttachment extends Object
Constructor and Description |
---|
ImmutableAttachment(com.mirth.connect.donkey.model.message.attachment.Attachment attachment)
Instantiates a new ImmutableAttachment object.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttachmentId()
Returns the unique replacement token for the attachment.
|
byte[] |
getContent()
Returns the content of the attachment as a byte array.
|
String |
getId()
Returns the unique ID for the attachment.
|
String |
getType()
Returns the MIME type of the attachment.
|
boolean |
isEncrypted()
Returns a boolean indicating whether the attachment content is encrypted.
|
public ImmutableAttachment(com.mirth.connect.donkey.model.message.attachment.Attachment attachment)
attachment
- The Attachment object that this object will reference for retrieving data.public String getAttachmentId()
public String getId()
public byte[] getContent()
public String getType()
public boolean isEncrypted()