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

org.dflib.jjava.jupyter.messages.reply.InspectReply Maven / Gradle / Ivy

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

import org.dflib.jjava.jupyter.kernel.display.DisplayData;
import org.dflib.jjava.jupyter.messages.ContentType;
import org.dflib.jjava.jupyter.messages.MessageType;
import org.dflib.jjava.jupyter.messages.ReplyType;
import org.dflib.jjava.jupyter.messages.request.InspectRequest;

public class InspectReply extends DisplayData implements ContentType, ReplyType {
    public static final MessageType MESSAGE_TYPE = MessageType.INSPECT_REPLY;
    public static final MessageType REQUEST_MESSAGE_TYPE = MessageType.INSPECT_REQUEST;

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

    @Override
    public MessageType getRequestType() {
        return REQUEST_MESSAGE_TYPE;
    }

    protected final String status = "ok";
    protected final boolean found;

    public InspectReply(boolean found, DisplayData data) {
        super(data);
        this.found = found;
    }

    public String getStatus() {
        return status;
    }

    public boolean isFound() {
        return found;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy