
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
41 lines
1.5 KiB
Objective-C
41 lines
1.5 KiB
Objective-C
//
|
||
// DataUtils.h
|
||
// YYFaceAuth
|
||
//
|
||
// Created by chenran on 16/10/18.
|
||
// Copyright © 2016年 zhangji. All rights reserved.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
|
||
@class AccountModel, ThirdUserInfo, HomeTagModel,HomeUserModel;
|
||
@interface AccountInfoStorage : NSObject
|
||
|
||
@property (nonatomic, strong, readonly) AccountModel *accountModel;
|
||
@property(nonatomic,copy) NSString *name;///判断帐号是否填写资料
|
||
///判断是否正在请求ticket,yes的话,不能用ticket请求数据,不然会出现401,要重新登录
|
||
@property (nonatomic,assign) BOOL isRequestTicket;
|
||
///如果是第三方登录的话 保存一下用户信息
|
||
@property (nonatomic,strong) ThirdUserInfo *thirdUserInfo;
|
||
@property(nonatomic,assign) BOOL isNative;
|
||
+ (instancetype)instance;
|
||
|
||
- (instancetype)init NS_UNAVAILABLE;
|
||
+ (instancetype)new NS_UNAVAILABLE;
|
||
- (id)copy NS_UNAVAILABLE;
|
||
- (id)mutableCopy NS_UNAVAILABLE;
|
||
|
||
- (AccountModel *)getCurrentAccountInfo;
|
||
- (void)saveAccountInfo:(AccountModel *)accountInfo;
|
||
///用于判断是否填写用户资料,没有将跳到用户填写用户资料界面
|
||
- (HomeUserModel *)getCurrentHomeUserInfo;
|
||
- (void)saveHomeUserInfo:(HomeUserModel *)homeUserInfo;
|
||
- (void)saveTicket:(NSString *)ticket;
|
||
- (NSString *)getTicket;
|
||
- (NSString *)getUid;
|
||
|
||
///首页的tag列表,增加缓存,加快加载速度的优化
|
||
- (NSArray<HomeTagModel *> *)getCurrentTagList;
|
||
- (void)saveTagList:(NSArray<HomeTagModel *> *)tagList;
|
||
@end
|