Package de.xima.fc.inbox.model.messages
Class MessageAttachmentViewModel
- java.lang.Object
-
- de.xima.fc.inbox.model.messages.MessageAttachmentViewModel
-
- All Implemented Interfaces:
Serializable
public class MessageAttachmentViewModel extends Object implements Serializable
View model for anAttachment
of aFormRecordMessage
in the inbox.- Since:
- 8.2.3
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageAttachmentViewModel(Long attachmentId, String fileName, long fileSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<MessageAttachmentViewModel>
createMessageAttachmentViewModels(List<Attachment> attachments)
Long
getAttachmentId()
The ID of the referenced attachment.String
getFileName()
The file name of the attachment.long
getFileSize()
The file size in bytes of the attachment.
-
-
-
Method Detail
-
getAttachmentId
public Long getAttachmentId()
The ID of the referenced attachment.- Returns:
- The attachment's ID.
-
getFileName
public String getFileName()
The file name of the attachment.- Returns:
- The file name.
-
getFileSize
public long getFileSize()
The file size in bytes of the attachment.- Returns:
- The file size in bytes.
-
createMessageAttachmentViewModels
public static List<MessageAttachmentViewModel> createMessageAttachmentViewModels(List<Attachment> attachments)
-
-