FaultInfoService.cs 636 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using GDNXFD.Data;
  7. using GDNXFD.Data.Model;
  8. namespace GDNXFD.WcfService
  9. {
  10. public class FaultInfoService : IFaultInfoService
  11. {
  12. /// <summary>
  13. /// 获取故障列表
  14. /// </summary>
  15. /// <returns></returns>
  16. public IList<DeviceFault> GetDeviceFault()
  17. {
  18. return DeviceFaultRepository.GetDeviceFault();
  19. }
  20. public IList<Warning> GetWarningInfo()
  21. {
  22. return WarningRepository.GetWarningInfoHaveFaultCode();
  23. }
  24. }
  25. }