Files
real-e-party-iOS/YuMi/Structure/MVP/Model/AccountInfoStorage.h
edwinQQQ a35a711be6 chore: Initial clean commit
- 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
2025-10-09 16:19:14 +08:00

41 lines
1.5 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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;///判断帐号是否填写资料
///判断是否正在请求ticketyes的话不能用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