123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //
- // FKHomeViewModel.h
- // FirstLink
- //
- // Created by ascii on 16/8/12.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #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
|