No Description

FLExploreKeywordViewModel.h 917B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // FLExploreKeywordViewModel.h
  3. // FirstLink
  4. //
  5. // Created by jack on 15/8/21.
  6. // Copyright (c) 2015年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "FKExploreKeyword.h"
  10. @class FKExploreConditionItem;
  11. @interface FLExploreKeywordViewModel : NSObject
  12. @property (nonatomic, strong) NSArray *keywordArray;
  13. @property (nonatomic, strong) NSArray *hotKeywordArray;
  14. - (BOOL)insertKeywordToDB:(NSString *)keyword createTime:(NSString *)createTime;
  15. - (NSArray *)queryKeywordsFromDB;
  16. - (BOOL)deleteAllKeywordsInDB;
  17. - (NSString *)keywordTextAtIndex:(NSInteger)index;
  18. - (NSString *)hotKeywordTextAtIndex:(NSInteger)index;
  19. - (NSString *)sectionTitleAtSection:(NSInteger)section;
  20. - (NSString *)titleAtIndexPath:(NSIndexPath *)indexPath;
  21. - (NSInteger)insertIntoBrandTable:(NSArray<NSString*> *)brands;
  22. - (NSArray<FKExploreConditionItem*> *)queryBrandsStartWith:(NSString *)prefix;
  23. @end