Package org.opentcs.data.notification
Class UserNotification
java.lang.Object
org.opentcs.data.notification.UserNotification
- All Implemented Interfaces:
Serializable
A notification to be read by a user.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Defines the possible message types. -
Constructor Summary
ConstructorsConstructorDescriptionUserNotification
(String source, String text, UserNotification.Level level) Creates a new Message.UserNotification
(String text, UserNotification.Level level) Creates a new Message. -
Method Summary
-
Constructor Details
-
UserNotification
Creates a new Message.- Parameters:
source
- An identifier of the notification's source.text
- The actual message text.level
- The new message's level.
-
UserNotification
Creates a new Message.- Parameters:
text
- The actual message text.level
- The new message's level.
-
-
Method Details
-
getSource
Returns this notification's (optional) source.- Returns:
- This notification's (optional) source.
-
getText
Returns this message's text.- Returns:
- This message's text.
-
getLevel
Returns this message's type.- Returns:
- This message's type.
-
getTimestamp
Returns this message's creation timestamp.- Returns:
- This message's creation timestamp.
-
hashCode
public int hashCode() -
equals
-
toString
-