// // FKHomeViewModel.h // FirstLink // // Created by ascii on 16/8/12. // Copyright © 2016年 FirstLink. All rights reserved. // #import #import "FKPersonOrderBadgeItem.h" #import "FKPointDataModel.h" #import "FKHomeCountModel.h" #import "FKPointSignItem.h" typedef NS_ENUM(NSUInteger, kHomeSectionType) { kHomeSectionTypeUnknow, kHomeSectionTypePerson, kHomeSectionTypeOrder, kHomeSectionTypePrivilege, kHomeSectionTypeHelpBuy, kHomeSectionTypePushAndConsult }; typedef NS_ENUM(NSInteger, kHomeCellType) { kHomeCellTypeNone = - 1, kHomeCellTypePersonInfo, kHomeCellTypeFollow, kHomeCellTypeOrderHeader, kHomeCellTypeOrder, kHomeCellTypeVIP, kHomeCellTypeCoupon, kHomeCellTypeHelpBuy, kHomeCellTypePush, kHomeCellTypeConsult }; extern NSString * const kVipRedpointGuideKey; @interface FKHomeViewModel : NSObject // 是否可以代买 @property (nonatomic, assign) BOOL isHelpBuyable; @property (nonatomic, strong) NSString *serverTime; @property (nonatomic, assign) NSInteger couponCount; @property (nonatomic, strong) FKPersonOrderBadgeItem *badgeItem; @property (nonatomic, strong) FKPointDataModel *signModel; @property (nonatomic, strong) FKHomeCountModel *countModel; - (NSInteger)numberOfSectionsInTableView; - (NSInteger)numberOfRowsInSection:(NSInteger)section; - (CGFloat)heightForRowAtIndexPath:(NSIndexPath *)indexPath; - (kHomeSectionType)sectionTypeForSection:(NSInteger)section; - (kHomeCellType)cellTypeForIndexPath:(NSIndexPath *)indexPath; - (BOOL)needShowInvalidCouponMsg; - (NSAttributedString *)invalidCouponMsg; - (void)saveLastShowInvalidCouponMsgTime; - (BOOL)isNeedShowVipRedpointGuide; - (void)shownVipRedpointGuide; @end