YMFriendsListViewModel.h 847 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // YMFriendsListViewModel.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/3/1.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "MSYOUPAIViewModel.h"
  9. #import "YMFriendsListCellViewModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. /** 好友分类类型 */
  12. typedef NS_ENUM(NSUInteger, YMFriendsCategoryType) {
  13. /** 关注*/
  14. YMFriendsCategoryTypeFollow = 0,
  15. /** 粉丝*/
  16. YMFriendsCategoryTypeFans = 1,
  17. };
  18. @interface YMFriendsListViewModel : MSYOUPAIViewModel
  19. /// 获取好友列表数据
  20. - (void)getFriendsListData;
  21. /// 请求数据分页
  22. @property (nonatomic, assign) NSInteger currentPage;
  23. /// 好友分类类型
  24. @property (nonatomic, assign, readonly) YMFriendsCategoryType categoryType;
  25. /// 列表数据
  26. @property (nonatomic, strong, readonly) NSMutableArray <YMFriendsListCellViewModel*>*listDataArray;
  27. @end
  28. NS_ASSUME_NONNULL_END