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

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

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

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.RequestType;
import org.dflib.jjava.jupyter.messages.reply.CompleteReply;

public class CompleteRequest implements ContentType, RequestType {
    public static final MessageType MESSAGE_TYPE = MessageType.COMPLETE_REQUEST;
    public static final MessageType REPLY_MESSAGE_TYPE = MessageType.COMPLETE_REPLY;

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

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

    protected final String code;

    @SerializedName("cursor_pos")
    protected final int cursorPos;

    public CompleteRequest(String code, int cursorPos) {
        this.code = code;
        this.cursorPos = cursorPos;
    }

    public String getCode() {
        return code;
    }

    public int getCursorPos() {
        return cursorPos;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy