Constants.cs 1.1 KB

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace EasyModbusClient.util
  7. {
  8. public class Constants
  9. {
  10. public static int RET_FAILURE_CODE = 0;
  11. public static int RET_SUCCESS_CODE = 1;
  12. public static int RET_CONDITUIN_CHECK_SUCCESS_CODE = 2;
  13. public static int RET_CONDITUIN_CHECK_FAILURE_CODE = 3;
  14. public static string OPERATE_SUCCESS_MSG = "操作成功";
  15. public static string OPERATE_FAILURE_MSG = "操作失败";
  16. public static string PARA_ERROR_MSG = "请求参数错误";
  17. public static string SELECT_PROGRAME_FAILURE_MSG = "程序选择成功";
  18. public static string SELECT_PROGRAME_SUCCESS_MSG = "程序选择失败";
  19. public static string DEL_PROGRAME_FAILURE_MSG = "程序删除成功";
  20. public static string DEL_PROGRAME_SUCCESS_MSG = "程序删除失败";
  21. public static string CONDITUIN_CHECK_SUCCESS_MSG = "执行条件满足";
  22. public static string CONDITUIN_CHECK_FAILURE_MSG = "执行条件不满足";
  23. }
  24. }