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

org.dflib.jjava.jupyter.messages.request.InputRequest Maven / Gradle / Ivy

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

import org.dflib.jjava.jupyter.messages.ContentType;
import org.dflib.jjava.jupyter.messages.MessageType;
import org.dflib.jjava.jupyter.messages.RequestType;
import org.dflib.jjava.jupyter.messages.reply.InputReply;

public class InputRequest implements ContentType, RequestType {
    public static final MessageType MESSAGE_TYPE = MessageType.INPUT_REQUEST;
    public static final MessageType REPLY_MESSAGE_TYPE = MessageType.INPUT_REPLY;

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

    @Override
    public MessageType getReplyType() {
        return REPLY_MESSAGE_TYPE;
    }

    protected String prompt;
    protected boolean password;

    public InputRequest(String prompt, boolean password) {
        this.prompt = prompt;
        this.password = password;
    }

    public String getPrompt() {
        return prompt;
    }

    public boolean isPassword() {
        return password;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy