using System;

namespace Siger.Middlelayer.ToolRepository.Response
{
    public class ToolAlarmStatisticsInfo
    {
        public string error_msg { get; set; }
        public int alarm_grade { get; set; }
        public int alarmtime { get; set; }
        public int count { get; set; }
    }
    public class ResponseToolAlarmStatisticsInfo: IComparable
    {
        public string name { get; set; }
        public int value { get; set; }
        public int alarm_grade { get; set; }
        //public string color { get; set; }

        public int CompareTo(object other)
        {
            if (null == other)
                return 1;
            return this.value.CompareTo(((ResponseToolAlarmStatisticsInfo)other).value);
        }
    }
}
