package cn.diaovision.omnicontrol.rx;

/**
 * Created by liulingfeng on 2017/3/29.
 */

public class RxMessage {
    //TODO: add what type for RxMessage
    public static final String DONE = "DONE"; //request is done
    public static final String ACK = "ACK"; //ack returned
    public static final String CONNECTED = "CONNECTED"; //connected
    public static final String DISCONNECTED = "DISCONNECTED"; //connected

    public String what;
    public String str;
    public int intVal;
    public float floatVal;
    public double doubleVal;

    public Object val;

    public RxMessage(String what, Object val) {
        this.what = what;
        this.val = val;
    }

    public RxMessage(String what){
        this.what = what;
    }

}

@@ -210,16 +210,77 @@
 is done%0A
+    public static final String ERR = %22ERR%22; //request is err%0A
     publ

add error message