using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMDServer.Common
{
    public class Constants
    {
        public enum EMD_DEVICE_TYPE : int
        {
            BUTTON = 1,
            SWITCH = 2, 
            FADER = 3,
            DIMMER = 4,
            POWER_METER = 5,
            DISPLAY = 255
        }

        public enum EMD_COMMAND : int
        {            
            REMOVE_DEVICE = 0,
            GET_VALUE = 1,
            //GET_VALUE_INTERVAL = 2,
            //STOP_VALUE_INTERVAL = 3,
            SET_VALUE = 4,
            VALUE = 5,
            TOGGLE_VALUE = 6,
            GET_POWER_VALUE = 10,
            //GET_POWER_VALUE_INTERVAL =11,
            //STOP_POWER_VALUE_INTERVAL = 12,
            POWER_VALUE = 13,
            BUTTON_RELEASED = 20,
            BUTTON_PRESSED = 21,
            ADD_DEVICE = 255
        }

        public const int EMD_DEVICE_BUTTON_DIM_TIMER_INTERVAL = 60;
        public const int EMD_DEVICE_SWITCH_TIMER_INTERVAL = 500;
        public const int EMD_DEVICE_SWITCH_TOGGLE_ENABLE_TIMER_INTERVAL = 1000;
        public const int EMD_DEVICE_POWERMETER_POWER_VALUE_REQUEST_TIMER_INTERVAL = 100;
        public const int EMD_DEVICE_MAX_VALUE = 255;
        public const int EMD_DEVICE_MIN_DIM_STEP_SIZE = 1;
        public const int EMD_DEVICE_MAX_DIM_STEP_SIZE = 19;
        public const int EMD_DEVICE_DIM_STEP_INCREMENT_SIZE = 1;
    }
}
