package edu.cmu.cs.gabrielclient.network;

public class NetworkProtocol {
    // TODO: give better names to these constants

    public static final int NETWORK_RET_FAILED = 1;
    public static final int NETWORK_RET_SPEECH = 2;
    public static final int NETWORK_RET_CONFIG = 3;
    public static final int NETWORK_RET_TOKEN = 4;
    public static final int NETWORK_RET_IMAGE = 5;
    public static final int NETWORK_RET_VIDEO = 6;
    public static final int NETWORK_RET_ANIMATION = 7;
    public static final int NETWORK_RET_MESSAGE = 8;
    public static final int NETWORK_RET_DONE = 9;
    public static final int NETWORK_RET_SYNC = 10;

    public static final String HEADER_MESSAGE_CONTROL = "control";
    public static final String HEADER_MESSAGE_RESULT = "result";
    public static final String HEADER_MESSAGE_INJECT_TOKEN = "token_inject";
    public static final String HEADER_MESSAGE_FRAME_ID = "frame_id";
    public static final String HEADER_MESSAGE_ENGINE_ID = "engine_id";

    public static final String SENSOR_TYPE_KEY = "sensor_type";
    public static final String SENSOR_JPEG = "mjpeg";
    public static final String SENSOR_ACC = "acc";
    public static final String SENSOR_GPS = "gps";
    public static final String SENSOR_AUDIO = "audio";

    public static final String SERVER_CONTROL_SENSOR_TYPE_IMAGE = SENSOR_JPEG;
    public static final String SERVER_CONTROL_SENSOR_TYPE_ACC = SENSOR_ACC;
    public static final String SERVER_CONTROL_SENSOR_TYPE_AUDIO = SENSOR_AUDIO;
    public static final String SERVER_CONTROL_FPS = "fps";
    public static final String SERVER_CONTROL_IMG_WIDTH = "img_width";
    public static final String SERVER_CONTROL_IMG_HEIGHT = "img_height";
    public static final String SERVER_CONTROL_FOCUS = "focus";
    public static final String SERVER_CONTROL_FLASHLIGHT = "flashlight";
}

@@ -71,59 +71,8 @@
 l %7B%0A
-    // TODO: give better names to these constants%0A%0A
     
@@ -215,1581 +215,17 @@
 RET_
-CONFIG = 3;%0A    public static final int NETWORK_RET_TOKEN = 4;%0A    public static final int NETWORK_RET_IMAGE = 5;%0A    public static final int NETWORK_RET_VIDEO = 6;%0A    public static final int NETWORK_RET_ANIMATION = 7;%0A    public static final int NETWORK_RET_MESSAGE = 8;%0A    public static final int NETWORK_RET_DONE = 9;%0A    public static final int NETWORK_RET_SYNC = 10;%0A%0A    public static final String HEADER_MESSAGE_CONTROL = %22control%22;%0A    public static final String HEADER_MESSAGE_RESULT = %22result%22;%0A    public static final String HEADER_MESSAGE_INJECT_TOKEN = %22token_inject%22;%0A    public static final String HEADER_MESSAGE_FRAME_ID = %22frame_id%22;%0A    public static final String HEADER_MESSAGE_ENGINE_ID = %22engine_id%22;%0A%0A    public static final String SENSOR_TYPE_KEY = %22sensor_type%22;%0A    public static final String SENSOR_JPEG = %22mjpeg%22;%0A    public static final String SENSOR_ACC = %22acc%22;%0A    public static final String SENSOR_GPS = %22gps%22;%0A    public static final String SENSOR_AUDIO = %22audio%22;%0A%0A    public static final String SERVER_CONTROL_SENSOR_TYPE_IMAGE = SENSOR_JPEG;%0A    public static final String SERVER_CONTROL_SENSOR_TYPE_ACC = SENSOR_ACC;%0A    public static final String SERVER_CONTROL_SENSOR_TYPE_AUDIO = SENSOR_AUDIO;%0A    public static final String SERVER_CONTROL_FPS = %22fps%22;%0A    public static final String SERVER_CONTROL_IMG_WIDTH = %22img_width%22;%0A    public static final String SERVER_CONTROL_IMG_HEIGHT = %22img_height%22;%0A    public static final String SERVER_CONTROL_FOCUS = %22focus%22;%0A    public static final String SERVER_CONTROL_FLASHLIGHT = %22flashlight%22
+IMAGE = 3
 ;%0A%7D%0A

Update NetworkProtocol