All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.mmsparams.api.websocket.messages.generic.GenericBooleanResponseMessage Maven / Gradle / Ivy

The newest version!
package cz.mmsparams.api.websocket.messages.generic;

import java.io.Serializable;

import cz.mmsparams.api.interfaces.IResponseMessage;
import cz.mmsparams.api.websocket.WebSocketMessageBase;

/**
 * Message representing logical value (true/false).
 * Usually used for acknowledging that message was accepter by recipient
 */
public class GenericBooleanResponseMessage extends WebSocketMessageBase implements Serializable, IResponseMessage
{
    private boolean value;

    public boolean isValue()
    {
        return value;
    }

    public void setValue(boolean value)
    {
        this.value = value;
    }


    @Override
    public String toString()
    {
        return "GenericBooleanResponseMessage{" +
                "value=" + value +
                "} " + super.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy