12345678910111213141516171819202122232425262728293031323334 |
- //
- // TDFileStorage.h
- // TheoryNetwork
- //
- // Created by tederen on 2019/10/10.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface TDFileStorage : NSObject
- TDShareInstance_interface(TDFileStorage)
- #define _TDFileStorage [TDFileStorage sharedTDFileStorage]
- - (void)saveStringDefault:(NSString *)string forKey:(NSString *)key;
- - (NSString *)loadStringDefaultFromKey:(NSString *)key;
- - (void)saveArrayDefault:(NSArray *)array forKey:(NSString *)key;
- - (NSArray *)loadArrayDefaultFromKey:(NSString *)key;
- /* 首页搜索历史 */
- - (void)saveMainSearchArray:(NSArray *)array;
- - (NSArray *)loadMainSearchArray;
- - (void)saveHistorySearchBySearchType:(HistorySearchType)historySearchType WithArr:(NSArray *)array;
- - (NSArray *)loadHistorySearchBySearchType:(HistorySearchType)historySearchType;
- @end
- NS_ASSUME_NONNULL_END
|