WvBean.cs 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace DotNettyFrom.model
  7. {
  8. public class WvBean
  9. {
  10. public int id;
  11. public int index;
  12. public string myId = "";
  13. public string idInfo = "";
  14. public string len = "";
  15. public string mode = "";
  16. public string desp = "";
  17. public string remark = "";
  18. public string defalutValue = "";
  19. public string userValue = "";
  20. public int protocolNo;
  21. public override string ToString()
  22. {
  23. return "IssuedCmdDataTest{" +
  24. "id=" + id +
  25. ", index=" + index +
  26. ", myId='" + myId + '\'' +
  27. ", idInfo='" + idInfo + '\'' +
  28. ", len='" + len + '\'' +
  29. ", mode='" + mode + '\'' +
  30. ", desp='" + desp + '\'' +
  31. ", remark='" + remark + '\'' +
  32. ", defalutValue='" + defalutValue + '\'' +
  33. ", userValue='" + userValue + '\'' +
  34. ", protocolNo=" + protocolNo +
  35. '}';
  36. }
  37. }
  38. class WvBeanComparer : IComparer<WvBean>
  39. {
  40. public int Compare(WvBean x, WvBean y)
  41. {
  42. return x.index.CompareTo(y.index);
  43. }
  44. }
  45. }