Exemple #1
0
        public BasicResponse <List <JC_MbInfo> > GetAlarmCacheByStime(RatioAlarmCacheGetByStimeRequest alarmCacheRequest)
        {
            var alarmCache         = RatioAlarmCache.AlarmCacheInstance.Query(alarm => alarm.Stime > alarmCacheRequest.Stime);
            var alarmCacheResponse = new BasicResponse <List <JC_MbInfo> >();

            alarmCacheResponse.Data = alarmCache;
            return(alarmCacheResponse);
        }
        /// <summary>
        /// 根据开始时间获取
        /// </summary>
        /// <param name="alarmCacheRequest"></param>
        /// <returns></returns>
        public BasicResponse <List <JC_MbInfo> > GetAlarmCacheByStime(RatioAlarmCacheGetByStimeRequest alarmCacheRequest)
        {
            var responsestr = HttpClientHelper.Post(Webapi + "/v1/ratioalarm/GetAlarmCacheByStime?token=" + Token, JSONHelper.ToJSONString(alarmCacheRequest));

            return(JSONHelper.ParseJSONString <BasicResponse <List <JC_MbInfo> > >(responsestr));
        }
 public BasicResponse <List <JC_MbInfo> > GetAlarmCacheByStime(RatioAlarmCacheGetByStimeRequest alarmCacheRequest)
 {
     return(alarmService.GetAlarmCacheByStime(alarmCacheRequest));
 }