Interface IUserPortalChatEntryViewModel
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
MessageModel,PendingUploadRequestModel
public interface IUserPortalChatEntryViewModel extends Serializable
Common interface for chat entry view models.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull @NotBlank StringgetSenderInitials()Get the sender initials.@NotNull @NotBlank StringgetSenderName()Get the sender name.StringgetSubject()Get the subject of the chat entry.@NotNull InstantgetTimestamp()Get the sent time.booleanhasFooter()Check if the chat entry has a footer.booleanisOwnMessage()Check if the chat entry is a message sent by the current user.
-
-
-
Method Detail
-
getSenderName
@NotNull @NotBlank @NotNull @NotBlank String getSenderName()
Get the sender name.- Returns:
- the sender name
-
getTimestamp
@NotNull @NotNull Instant getTimestamp()
Get the sent time.- Returns:
- the sent time
-
getSenderInitials
@NotNull @NotBlank default @NotNull @NotBlank String getSenderInitials()
Get the sender initials.- Returns:
- the sender initials
-
hasFooter
boolean hasFooter()
Check if the chat entry has a footer.- Returns:
- true if the chat entry has a footer, false otherwise
-
getSubject
String getSubject()
Get the subject of the chat entry.- Returns:
- the subject of the chat entry
-
isOwnMessage
boolean isOwnMessage()
Check if the chat entry is a message sent by the current user.- Returns:
- true if the chat entry is a message sent by the current user, false otherwise
-
-