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
public class ChannelMessage extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChannelMessage(String eventName, Serializable payload)
Creates a new channel message with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEventName()
Object
getPayload()
-
-
-
Constructor Detail
-
ChannelMessage
public ChannelMessage(String eventName, Serializable payload)
Creates a new channel message with the given data.- Parameters:
eventName
- Name of the message event.payload
- Data of the message event.
-
-