Package de.xima.fc.gui.common.model.push
Class ChannelMessage
java.lang.Object
de.xima.fc.gui.common.model.push.ChannelMessage
- All Implemented Interfaces:
Serializable
A message sent to the client via a web socket. Contains an event name that identifies the type message, and a payload
with additional details.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChannelMessage
(String eventName, Serializable payload) Creates a new channel message with the given data. -
Method Summary
-
Constructor Details
-
ChannelMessage
Creates a new channel message with the given data.- Parameters:
eventName
- Name of the message event.payload
- Data of the message event.
-
-
Method Details
-
getEventName
- Returns:
- Name (type) of the message event.
-
getPayload
- Returns:
- Data that is sent along with the message.
-