package nl.sense_os.service.constants;

public class SenseUrls {

    public static final String BASE = "https://api.sense-os.nl/";
    public static final String DEV_BASE = "http://api.dev.sense-os.nl/";
    //public static final String DEV_BASE = "http://192.168.1.207:8088/";
    public static final String VERSION = "http://data.sense-os.nl/senseapp/version.php";

    public static final String FORMAT = ".json";

    public static final String DEVICES = BASE + "devices" + FORMAT;
    public static final String DEV_DEVICES = DEV_BASE + "devices" + FORMAT;

    public static final String SENSORS = BASE + "devices/<id>/sensors" + FORMAT;
    public static final String DEV_SENSORS = DEV_BASE + "devices/<id>/sensors" + FORMAT;

    public static final String ALL_SENSORS = BASE + "sensors" + FORMAT
	    + "?per_page=1000&details=full";
    public static final String DEV_ALL_SENSORS = DEV_BASE + "sensors" + FORMAT
	    + "?per_page=1000&details=full";
    
    public static final String REGISTER_C2DM_ID = BASE + "devices/<id>/c2dm/register" + FORMAT;
    public static final String DEV_REGISTER_C2DM_ID = DEV_BASE + "devices/<id>/c2dm/register" + FORMAT;

    
    public static final String SENSOR_DATA = BASE + "sensors/<id>/data" + FORMAT;
    public static final String DEV_SENSOR_DATA = DEV_BASE + "sensors/<id>/data" + FORMAT;

    public static final String SENSOR_FILE = BASE + "sensors/<id>/file" + FORMAT;
    public static final String DEV_SENSOR_FILE = DEV_BASE + "sensors/<id>/file" + FORMAT;

    public static final String CREATE_SENSOR = BASE + "sensors" + FORMAT;
    public static final String DEV_CREATE_SENSOR = DEV_BASE + "sensors" + FORMAT;

    public static final String ADD_SENSOR_TO_DEVICE = BASE + "sensors/<id>/device" + FORMAT;
    public static final String DEV_ADD_SENSOR_TO_DEVICE = DEV_BASE + "sensors/<id>/device" + FORMAT;

    public static final String LOGIN = BASE + "login" + FORMAT;
    public static final String DEV_LOGIN = DEV_BASE + "login" + FORMAT;

    public static final String REG = BASE + "users" + FORMAT;
    public static final String DEV_REG = DEV_BASE + "users" + FORMAT;

    private SenseUrls() {
	// private constructor to prevent instantiation
    }
}

@@ -208,83 +208,8 @@
 %22;%0D%0A
-    //public static final String DEV_BASE = %22http://192.168.1.207:8088/%22;%0D%0A
     
@@ -942,27 +942,26 @@
 ng REGISTER_
+G
 C
-2D
 M_ID = BASE 
@@ -968,36 +968,36 @@
 + %22devices/%3Cid%3E/
-c2dm
+push
 /register%22 + FOR
@@ -1050,11 +1050,10 @@
 TER_
+G
 C
-2D
 M_ID
@@ -1084,12 +1084,12 @@
 id%3E/
-c2dm
+push
 /reg
@@ -1104,24 +1104,248 @@
  FORMAT;%0D%0A%0D%0A
+    public static final String DEVICE_UPDATE_CONFIGURATION = BASE + %22devices/%3Cid%3E/configuration%22 + FORMAT;%0D%0A    public static final String DEV_DEVICE_UPDATE_CONFIGURATION = DEV_BASE + %22devices/%3Cid%3E/configuration%22 + FORMAT;%0D%0A
     %0D%0A    pu

change GCM url