/// <summary>
        /// 获取巡检结果列表
        /// </summary>
        /// <param name="patrolId"></param>
        /// <param name="deviceCode"></param>
        /// <returns></returns>
        public checkresults Getcheckresults(int patrolId, string deviceId)
        {
            checkresults recv = new checkresults();

            try
            {
                string path = "patrols/" + Convert.ToString(patrolId) + "/checkpoints/" + deviceId + "/results";
                string url  = BaseUri + path;

                recv = GetCheckResults(url);
            }
            catch (Exception ex)
            {
                string messgae = ex.Message;
            }

            return(recv);
        }
        public checkresults GetCheckResults(string url)
        {
            checkresults recv = new checkresults();

            try
            {
                recv = WebApiHelper.GetEntity <checkresults>(url);
                if (recv == null)
                {
                    return(null);
                }
                if (recv.checks == null)
                {
                    recv.checks = new List <results>();
                }
            }
            catch (Exception ex)
            {
                Message = ex.Message;
                return(null);
            }
            return(recv);
        }