public class MessageUnsubscribe extends Message
Message.MessageType| Constructor and Description |
|---|
MessageUnsubscribe(int id)
Creates a new message based on the given parameters.
|
MessageUnsubscribe(javax.json.JsonObject obj)
Creates a new message based on the JSON representation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
toJson(Writer writer)
Serializes this message as JSON onto the given writer.
|
getId, getMessage, readValueFromJson, writeValueToJsonpublic MessageUnsubscribe(javax.json.JsonObject obj)
throws MessageDecodeException
obj - JSON objectMessageDecodeException - if json format is incorrectpublic MessageUnsubscribe(int id)
id - the channel idCopyright © 2015. All rights reserved.