Package thijzert.chatty.message
Class UserActionMessage
java.lang.Object
thijzert.chatty.message.UserActionMessage
- All Implemented Interfaces:
Serializable
,Message
A server message that tells about an action a user did (connecting to the server or quitting).
- Author:
- Thijzert
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The actions a user can do. -
Field Summary
Modifier and TypeFieldDescriptionprivate static final long
private final UserInfo
private final UserActionMessage.UserAction
-
Constructor Summary
ConstructorDescriptionUserActionMessage
(UserInfo user, UserActionMessage.UserAction userAction) This constructor initializes theUserActionMessage
. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
user_
-
userAction_
-
-
Constructor Details
-
UserActionMessage
This constructor initializes theUserActionMessage
.- Parameters:
user
- the user this message is aboutuserAction
- the action the user executed
-
-
Method Details
-
getUser
Returns the user this message is about.- Returns:
- the user this message is about
-
getAction
Returns the action this message is about.- Returns:
- the action this message is about
-
toString
Returns a summary of theUserActionMessage
.
-