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

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

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

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.ReplyType;
import org.dflib.jjava.jupyter.messages.request.CommInfoRequest;

import java.util.Map;

public class CommInfoReply implements ContentType, ReplyType {
    public static final MessageType MESSAGE_TYPE = MessageType.COMM_INFO_REPLY;
    public static final MessageType REQUEST_MESSAGE_TYPE = MessageType.COMM_INFO_REQUEST;

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

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

    public static class CommInfo {
        @SerializedName("target_name")
        protected final String targetName;

        public CommInfo(String targetName) {
            this.targetName = targetName;
        }

        public String getTargetName() {
            return targetName;
        }
    }

    /**
     * A map of uuid to target_name for the comms
     */
    protected final Map comms;

    public CommInfoReply(Map comms) {
        this.comms = comms;
    }

    public Map getComms() {
        return comms;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy