private static String CreateDeviceRules()
        {
            DeviceRule deviceRule1 = new DeviceRule();

            deviceRule1.DeviceID    = DEVICEID_LINUX_TURBINE;
            deviceRule1.CutOutSpeed = CUTOUTSPEED;
            deviceRule1.Repair      = REPAIR;
            deviceRule1.Altitude    = 239.6648864f;
            deviceRule1.Latitude    = 25.037531f;
            deviceRule1.Longitude   = 121.5639969f;

            DeviceRule deviceRule2 = new DeviceRule();

            deviceRule2.DeviceID    = DEVICEID_WINDOWS_TURBINE;
            deviceRule2.CutOutSpeed = CUTOUTSPEED;
            deviceRule2.Repair      = REPAIR;
            deviceRule2.Altitude    = 239.6648864f;
            deviceRule2.Latitude    = 22.6235806f;
            deviceRule2.Longitude   = 120.2913016f;

            List <DeviceRule> deviceRules = new List <DeviceRule>();

            deviceRules.Add(deviceRule1);
            deviceRules.Add(deviceRule2);
            return(JsonConvert.SerializeObject(deviceRules));
        }
        private static String CreateDeviceRules()
        {
            DeviceRule deviceRule = new DeviceRule();

            deviceRule.SensorType           = SENSOR_TYPE_THERMOMETER;
            deviceRule.TemperatureThreshold = TEMPERATURE_THRESHOLD;

            List <DeviceRule> deviceRules = new List <DeviceRule>();

            deviceRules.Add(deviceRule);
            return(JsonConvert.SerializeObject(deviceRules));
        }