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 Long
getAttachmentId()
The ID of the referenced attachment.String
getFileName()
The file name of the attachment.String
getFileSize(Locale locale)
The file size in bytes of the attachment.static List<MessageAttachmentViewModel>
toMessageAttachmentViewModels(List<Attachment> attachments)
-
-
-
Method Detail
-
toMessageAttachmentViewModels
public static List<MessageAttachmentViewModel> toMessageAttachmentViewModels(List<Attachment> attachments)
-
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.
-
-