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

org.dflib.jjava.jupyter.messages.comm.CommCloseCommand Maven / Gradle / Ivy

The newest version!
package org.dflib.jjava.jupyter.messages.comm;

import com.google.gson.JsonObject;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import org.dflib.jjava.jupyter.messages.ContentType;
import org.dflib.jjava.jupyter.messages.MessageType;
import org.dflib.jjava.jupyter.messages.adapters.IdentityJsonElementAdapter;

public class CommCloseCommand implements ContentType {
    public static final MessageType MESSAGE_TYPE = MessageType.COMM_CLOSE_COMMAND;

    @Override
    public MessageType getType() {
        return MESSAGE_TYPE;
    }

    @SerializedName("comm_id")
    protected final String commId;

    @JsonAdapter(IdentityJsonElementAdapter.class)
    protected final JsonObject data;

    public CommCloseCommand(String commId, JsonObject data) {
        this.commId = commId;
        this.data = data;
    }

    public String getCommID() {
        return commId;
    }

    public JsonObject getData() {
        return data;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy