public BasicResponse AddAlarmCache(RatioAlarmCacheAddRequest alarmCacheRequest) { RatioAlarmCache.AlarmCacheInstance.AddItem(alarmCacheRequest.AlarmInfo); return(new BasicResponse()); }
/// <summary> /// 添加报警缓存 /// </summary> /// <param name="alarmCacheRequest"></param> /// <returns></returns> public BasicResponse AddAlarmCache(RatioAlarmCacheAddRequest alarmCacheRequest) { var responsestr = HttpClientHelper.Post(Webapi + "/v1/ratioalarm/AddAlarmCache?token=" + Token, JSONHelper.ToJSONString(alarmCacheRequest)); return(JSONHelper.ParseJSONString <BasicResponse>(responsestr)); }
public BasicResponse AddAlarmCache(RatioAlarmCacheAddRequest alarmCacheRequest) { return(alarmService.AddAlarmCache(alarmCacheRequest)); }