Нет описания

FKCirclePublicViewModel.h 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // FKCirclePublicViewModel.h
  3. // FirstLink
  4. //
  5. // Created by ascii on 16/6/8.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "FKCirclePublicUserItem.h"
  10. #import "FKCirclePublicTextItem.h"
  11. #import "FKCirclePublicImageItem.h"
  12. #import "FKCircleChoiceProductItem.h"
  13. #import "FKCircleTagItem.h"
  14. @class FKCircleDetailItem;
  15. typedef enum {
  16. kCirclePublicNone,
  17. kCirclePublicUser,
  18. kCirclePublicProductDesc,
  19. kCirclePublicImage,
  20. kCirclePublicProduct,
  21. } kCirclePublicType;
  22. @class FKCircleTagItem;
  23. extern NSString *const CIRCLE_PUBLIC_DESC_PALCEHOLDER;
  24. extern NSString *const CIRCLE_PUBLIC_IMAGETEXTVIEW_PALCEHOLDER;
  25. extern NSInteger const FKCIRCLE_PUBLIC_IMAGE_LENGTH;
  26. extern NSString *const FKCirclePublicUserCellIdentify;
  27. extern NSString *const FKCirclePublicProductDescCellIdentify;
  28. extern NSString *const FKCirclePublicImageCellIdentify;
  29. extern NSString *const FKCirclePublicProductCellIdentify;
  30. @interface FKCirclePublicViewModel : NSObject
  31. @property (nonatomic, strong) NSString *itemID;
  32. @property (nonatomic, strong) NSMutableArray *modelMutArray;
  33. /**
  34. * 标签页面选中的Tag对象
  35. */
  36. @property (nonatomic, strong) NSArray<FKCircleTagItem*> *tags;
  37. /**
  38. * 晒单编辑进入标签选择页面,需要选中的标签ID
  39. */
  40. @property (nonatomic, strong) NSArray<NSString*> *selTagIDs;
  41. - (void)prepareInitData;
  42. - (void)loadDataFrom:(FKCircleDetailItem*)detailItem;
  43. - (kCirclePublicType)cellTypeAtIndexPath:(NSIndexPath *)indexPath;
  44. - (id)modelItemAtIndexPath:(NSIndexPath *)indexPath;
  45. - (void)removeModelItemAtIndexPath:(NSIndexPath *)indexPath;
  46. - (NSString *)orderCellIdentifyWith:(kCirclePublicType)cellType;
  47. - (NSArray*)productIDs;
  48. - (NSString *)validDataMessage;
  49. - (NSDictionary *)jsonForCreateShare;
  50. @end