29 lines
805 B
Objective-C
29 lines
805 B
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;
|
|
@interface AccountInfoStorage : NSObject
|
|
@property (nonatomic, strong, readonly) AccountModel *accountModel;
|
|
///如果是第三方登录的话 保存一下用户信息
|
|
@property (nonatomic,strong) ThirdUserInfo *thirdUserInfo;
|
|
+ (instancetype)instance;
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
+ (instancetype)new NS_UNAVAILABLE;
|
|
- (id)copy NS_UNAVAILABLE;
|
|
- (id)mutableCopy NS_UNAVAILABLE;
|
|
|
|
- (AccountModel *)getCurrentAccountInfo;
|
|
- (void)saveAccountInfo:(AccountModel *)accountInfo;
|
|
- (void)saveTicket:(NSString *)ticket;
|
|
- (NSString *)getTicket;
|
|
- (NSString *)getUid;
|
|
@end
|