view src/test/java/christie/example/RemoteTake/RTCommand.java @ 253:9b0ad65ae5c0

RemoteTake object example worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 25 Jan 2020 18:55:14 +0900
parents 901d65bad48d
children
line wrap: on
line source

package christie.example.RemoteTake;

import org.msgpack.annotation.Message;

@Message
class RTCommand {
    public String line;
    public String cmd;
    public int offset;

    public RTCommand () {}

    public RTCommand(String cmd, String line, int i) {
        this.cmd = cmd;
        this.line = line;
        this.offset = i;
    }

    @Override
    public String toString() {
        return "RTCommand{" +
                "line='" + line + '\'' +
                ", cmd='" + cmd + '\'' +
                ", offset=" + offset +
                '}';
    }
}