org.rapaio.jupyter.kernel.message.messages.CustomCommOpen Maven / Gradle / Ivy
package org.rapaio.jupyter.kernel.message.messages;
import org.rapaio.jupyter.kernel.message.ContentType;
import org.rapaio.jupyter.kernel.message.adapters.IdentityJsonElementAdapter;
import org.rapaio.jupyter.kernel.message.MessageType;
import com.google.gson.JsonObject;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
public record CustomCommOpen(
@SerializedName("comm_id") String commId,
@SerializedName("target_name") String targetName,
@JsonAdapter(IdentityJsonElementAdapter.class) JsonObject data) implements ContentType {
@Override
public MessageType type() {
return MessageType.CUSTOM_COMM_OPEN;
}
}