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

org.dflib.jjava.jupyter.messages.publish.PublishExecuteInput Maven / Gradle / Ivy

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

import com.google.gson.annotations.SerializedName;
import org.dflib.jjava.jupyter.messages.ContentType;
import org.dflib.jjava.jupyter.messages.MessageType;

public class PublishExecuteInput implements ContentType {
    public static final MessageType MESSAGE_TYPE = MessageType.PUBLISH_EXECUTE_INPUT;

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

    /**
     * The code that is currently being executed
     */
    private final String code;

    /**
     * The current execution count
     */
    @SerializedName("execution_count")
    private final int count;

    public PublishExecuteInput(String code, int count) {
        this.code = code;
        this.count = count;
    }

    public String getCode() {
        return code;
    }

    public int getCount() {
        return count;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy