123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //
- // FKCirclePublicViewModel.h
- // FirstLink
- //
- // Created by ascii on 16/6/8.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "FKCirclePublicUserItem.h"
- #import "FKCirclePublicTextItem.h"
- #import "FKCirclePublicImageItem.h"
- #import "FKCircleChoiceProductItem.h"
- #import "FKCircleTagItem.h"
- @class FKCircleDetailItem;
- typedef enum {
- kCirclePublicNone,
- kCirclePublicUser,
- kCirclePublicProductDesc,
- kCirclePublicImage,
- kCirclePublicProduct,
- } kCirclePublicType;
- @class FKCircleTagItem;
- extern NSString *const CIRCLE_PUBLIC_DESC_PALCEHOLDER;
- extern NSString *const CIRCLE_PUBLIC_IMAGETEXTVIEW_PALCEHOLDER;
- extern NSInteger const FKCIRCLE_PUBLIC_IMAGE_LENGTH;
- extern NSString *const FKCirclePublicUserCellIdentify;
- extern NSString *const FKCirclePublicProductDescCellIdentify;
- extern NSString *const FKCirclePublicImageCellIdentify;
- extern NSString *const FKCirclePublicProductCellIdentify;
- @interface FKCirclePublicViewModel : NSObject
- @property (nonatomic, strong) NSString *itemID;
- @property (nonatomic, strong) NSMutableArray *modelMutArray;
- /**
- * 标签页面选中的Tag对象
- */
- @property (nonatomic, strong) NSArray<FKCircleTagItem*> *tags;
- /**
- * 晒单编辑进入标签选择页面,需要选中的标签ID
- */
- @property (nonatomic, strong) NSArray<NSString*> *selTagIDs;
- - (void)prepareInitData;
- - (void)loadDataFrom:(FKCircleDetailItem*)detailItem;
- - (kCirclePublicType)cellTypeAtIndexPath:(NSIndexPath *)indexPath;
- - (id)modelItemAtIndexPath:(NSIndexPath *)indexPath;
- - (void)removeModelItemAtIndexPath:(NSIndexPath *)indexPath;
- - (NSString *)orderCellIdentifyWith:(kCirclePublicType)cellType;
- - (NSArray*)productIDs;
- - (NSString *)validDataMessage;
- - (NSDictionary *)jsonForCreateShare;
- @end
|