EMPageResult.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*!
  2. * \~chinese
  3. * @header EMPageResult.h
  4. * @abstract 分段结果
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMPageResult.h
  10. * @abstract Subsection result
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. /*!
  16. * \~chinese
  17. * 分段结果
  18. *
  19. * \~english
  20. * Sub-section result
  21. */
  22. @interface EMPageResult : NSObject
  23. /*!
  24. * \~chinese
  25. * 结果列表<id>
  26. *
  27. * \~english
  28. * Result list<id>
  29. */
  30. @property (nonatomic, strong) NSArray *list;
  31. /*!
  32. * \~chinese
  33. * 获取当前列表数目
  34. *
  35. * \~english
  36. * The count of current list
  37. */
  38. @property (nonatomic) NSInteger count;
  39. /*!
  40. * \~chinese
  41. * 创建实例
  42. *
  43. * @param aList 结果列表<id>
  44. * @param aCount 获取当前列表数目
  45. *
  46. * @result 分段结果的实例
  47. *
  48. * \~english
  49. * Get result instance
  50. *
  51. * @param aList Result list<id>
  52. * @param aCount The count of current list
  53. *
  54. * @result An instance of cursor result
  55. */
  56. + (instancetype)pageResultWithList:(NSArray *)aList
  57. andCount:(NSInteger)aCount;
  58. @end