// Path: src/org/sagemath/droid/constants/ControlType.java
// public class ControlType {
// 
//     public static final int CONTROL_ERROR = 0x000400;
// 
//     public static final int CONTROL_SLIDER = 0x000401;
//     public static final int CONTROL_SELECTOR = 0x000402;
// 
//     public static final int SLIDER_DISCRETE = 0x000403;
//     public static final int SLIDER_CONTINUOUS = 0x000404;
// }


import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import org.sagemath.droid.constants.ControlType;
import java.util.ArrayList;
        private int _default;

        private int[] range;
        private String subtype;
        private String label;
        private int step;

        public InteractControl() {
            gson = new Gson();
        }

        public String toString() {
            //TODO, Try and use the gson from BaseReply
            return gson.toJson(this);
        }

        public boolean isUpdate() {
            return update;
        }

        public boolean isRaw() {
            return raw;
        }

        public String getStringControlType() {
            return control_type;
        }

        public int getControlType() {
            if (control_type.equalsIgnoreCase(STR_SELECTOR))
// Path: src/org/sagemath/droid/constants/ControlType.java
// public class ControlType {
// 
//     public static final int CONTROL_ERROR = 0x000400;
// 
//     public static final int CONTROL_SLIDER = 0x000401;
//     public static final int CONTROL_SELECTOR = 0x000402;
// 
//     public static final int SLIDER_DISCRETE = 0x000403;
//     public static final int SLIDER_CONTINUOUS = 0x000404;
// }


// Path: src/org/sagemath/droid/models/gson/InteractReply.java
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import org.sagemath.droid.constants.ControlType;
import java.util.ArrayList;

        private int _default;

        private int[] range;
        private String subtype;
        private String label;
        private int step;

        public InteractControl() {
            gson = new Gson();
        }

        public String toString() {
            //TODO, Try and use the gson from BaseReply
            return gson.toJson(this);
        }

        public boolean isUpdate() {
            return update;
        }

        public boolean isRaw() {
            return raw;
        }

        public String getStringControlType() {
            return control_type;
        }

        public int getControlType() {
            if (control_type.equalsIgnoreCase(STR_SELECTOR))
                return ControlType.CONTROL_SELECTOR;