YMViewModelProtocol.h 760 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // YMViewModelProtocol.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/4.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef enum : NSUInteger {
  11. /**下拉还有更多数据*/
  12. YMHeaderRefresh_HasMoreData = 1,
  13. /**下拉没有更多数据*/
  14. YMHeaderRefresh_HasNoMoreData,
  15. /**上拉还有更多数据*/
  16. YMFooterRefresh_HasMoreData,
  17. /**上拉没有更多数据*/
  18. YMFooterRefresh_HasNoMoreData,
  19. /**刷新出错*/
  20. YMRefreshError,
  21. /**刷新失败*/
  22. YMRefreshFail,
  23. /**刷新UI布局*/
  24. YMRefreshUI,
  25. } YMRefreshDataStatus;
  26. @protocol YMViewModelProtocol <NSObject>
  27. @optional
  28. /// 初始化
  29. - (void)ym_initialize;
  30. @end
  31. NS_ASSUME_NONNULL_END