org.diirt.pods.web.common.MessageResume Maven / Gradle / Ivy
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.pods.web.common;
import java.io.Writer;
import javax.json.JsonObject;
/**
* Message to resume notifications of a channel.
*
* @author carcassi
*/
public class MessageResume extends Message {
/**
* Creates a new message based on the JSON representation.
*
* @param obj JSON object
* @throws MessageDecodeException if json format is incorrect
*/
public MessageResume(JsonObject obj) throws MessageDecodeException {
super(obj);
}
/**
* Creates a new message based on the given parameters.
*
* @param id the channel id
*/
public MessageResume(int id) {
super(MessageType.RESUME, id);
}
@Override
public void toJson(Writer writer) {
basicToJson(writer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy