PageResponse.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using MessagePack;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace HaBookCms.Response
  6. {
  7. [MessagePackObject(keyAsPropertyName: true)]
  8. public class PageResponse
  9. {
  10. public long total;
  11. public int currPage;
  12. public int pageSize;
  13. public int totalPage;
  14. public long getTotal()
  15. {
  16. return this.total;
  17. }
  18. public void setTotal(long total)
  19. {
  20. this.total = total;
  21. }
  22. public int getCurrPage()
  23. {
  24. return this.currPage;
  25. }
  26. public void setCurrPage(int currPage)
  27. {
  28. this.currPage = currPage;
  29. }
  30. public int getPageSize()
  31. {
  32. return this.pageSize;
  33. }
  34. public void setPageSize(int pageSize)
  35. {
  36. this.pageSize = pageSize;
  37. }
  38. public int getTotalPage()
  39. {
  40. return this.totalPage;
  41. }
  42. public void setTotalPage(int totalPage)
  43. {
  44. this.totalPage = totalPage;
  45. }
  46. public PageResponse()
  47. {
  48. }
  49. public PageResponse(long total, int currPage, int pageSize, int totalPage)
  50. {
  51. this.total = total;
  52. this.currPage = currPage;
  53. this.pageSize = pageSize;
  54. this.totalPage = totalPage;
  55. }
  56. }
  57. }