Class PendingUploadRequestModel
- java.lang.Object
-
- de.xima.fc.user_portal.view_model.messages.PendingUploadRequestModel
-
- All Implemented Interfaces:
IUserPortalChatEntryViewModel
,Serializable
public class PendingUploadRequestModel extends Object implements IUserPortalChatEntryViewModel
Pending upload request view model class.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PendingUploadRequestModel
fromUploadRequest(de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageUploadRequestResource uploadRequest, de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageResource message)
String
getFormElementName()
List<UserPortalFileModel>
getPreviousFiles()
String
getSenderName()
Get the sender name.String
getSubject()
Get the subject of the chat entry.Instant
getTimestamp()
Get the sent time.String
getTimestampToReadableDate(Locale locale)
UploadRequestModel
getUploadRequest()
UUID
getUuid()
boolean
hasFooter()
Check if the chat entry has a footer.boolean
isFulfilled()
boolean
isHasPreviousFiles()
boolean
isOwnMessage()
Check if the chat entry is a message sent by the current user.boolean
isShowFooter()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.user_portal.view_model.messages.IUserPortalChatEntryViewModel
getSenderInitials
-
-
-
-
Method Detail
-
fromUploadRequest
public static PendingUploadRequestModel fromUploadRequest(de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageUploadRequestResource uploadRequest, de.xima.fc.api.rest.pub.client.form_record.model.BaseFormRecordMessageResource message)
-
getFormElementName
public String getFormElementName()
-
getPreviousFiles
public List<UserPortalFileModel> getPreviousFiles()
-
getSenderName
public String getSenderName()
Description copied from interface:IUserPortalChatEntryViewModel
Get the sender name.- Specified by:
getSenderName
in interfaceIUserPortalChatEntryViewModel
- Returns:
- the sender name
-
getTimestamp
public Instant getTimestamp()
Description copied from interface:IUserPortalChatEntryViewModel
Get the sent time.- Specified by:
getTimestamp
in interfaceIUserPortalChatEntryViewModel
- Returns:
- the sent time
-
hasFooter
public boolean hasFooter()
Description copied from interface:IUserPortalChatEntryViewModel
Check if the chat entry has a footer.- Specified by:
hasFooter
in interfaceIUserPortalChatEntryViewModel
- Returns:
- true if the chat entry has a footer, false otherwise
-
getSubject
public String getSubject()
Description copied from interface:IUserPortalChatEntryViewModel
Get the subject of the chat entry.- Specified by:
getSubject
in interfaceIUserPortalChatEntryViewModel
- Returns:
- the subject of the chat entry
-
isOwnMessage
public boolean isOwnMessage()
Description copied from interface:IUserPortalChatEntryViewModel
Check if the chat entry is a message sent by the current user.- Specified by:
isOwnMessage
in interfaceIUserPortalChatEntryViewModel
- Returns:
- true if the chat entry is a message sent by the current user, false otherwise
-
getUploadRequest
public UploadRequestModel getUploadRequest()
-
getUuid
public UUID getUuid()
-
isFulfilled
public boolean isFulfilled()
-
isHasPreviousFiles
public boolean isHasPreviousFiles()
-
isShowFooter
public boolean isShowFooter()
-
-