No Description

FKLiveViewModel.h 880B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // FKLiveViewModel.h
  3. // FirstLink
  4. //
  5. // Created by Lofty on 16/10/13.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "FKLivesProductItem.h"
  10. typedef NS_ENUM(NSUInteger, kLiveCellType) {
  11. kLiveCellTypeNone = 0,
  12. kLiveCellTypeBrandHead,
  13. kLiveCellTypeProduct,
  14. kLiveCellTypeActivityHead,
  15. kLiveCellTypeActivityProduct
  16. };
  17. @interface FKLiveViewModel : NSObject
  18. @property (nonatomic, strong) NSMutableArray *items;
  19. @property (nonatomic, strong) NSString *anchorID;
  20. - (void)addItems:(NSArray *)array;
  21. - (NSInteger)itemCount;
  22. - (FKLivesProductItem *)itemAtIndexPath:(NSIndexPath *)indexPath;
  23. - (BOOL)isEmpty;
  24. - (kLiveCellType)cellTypeAtIndexPath:(NSIndexPath *)indexPath;
  25. - (NSString *)cellIdentifiyAtIndexPath:(NSIndexPath *)indexPath;
  26. - (CGFloat)heightForRowAtIndexPath:(NSIndexPath *)indexPath;
  27. @end