PageResponse.cs 1.3 KB

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