You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.3 KiB

//
// MOBFUser.h
// MOBFoundation
//
// Created by 冯鸿杰 on 17/3/17.
// Copyright © 2017年 MOB. All rights reserved.
//
#import <MOBFoundation/MOBFoundation.h>
#import "IMOBBaseUser.h"
#import "MOBFDataModel.h"
/**
*/
@interface MOBFUser : MOBFDataModel <IMOBBaseUser>
/**
*/
@property (nonatomic, copy, readonly, nullable) NSString * uid;
/**
*/
@property (nonatomic, copy, readonly, nullable) NSString * appUid;
/**
*/
@property (nonatomic, copy, nullable) NSString * avatar;
/**
*/
@property (nonatomic, copy, nullable) NSString * nickname;
/**
*/
@property (nonatomic, copy, nullable) NSString * sign;
/**
*/
@property (nonatomic, strong, nullable) NSDictionary * userdata;
/**
@param uid
@param avatar
@param nickname
@return
*/
+ (MOBFUser* _Nullable)userWithUid:(NSString * _Nonnull)uid
avatar:(NSString * _Nullable)avatar
nickname:(NSString * _Nullable)nickname __deprecated_msg("use userWithAppUid:avatar:nickname:userData: method instead.");
/**
@param appUid
@param avatar
@param nickname
@param userdata
@return
*/
+ (MOBFUser* _Nullable)userWithAppUid:(NSString * _Nonnull )appUid
avatar:(NSString * _Nullable)avatar
nickname:(NSString * _Nullable)nickname
userdata:(NSDictionary * _Nullable)userdata;
/**
@param appUid
@param avatar
@param nickname
@param userdata
@return
*/
+ (MOBFUser* _Nullable)userWithAppUid:(NSString * _Nonnull )appUid
avatar:(NSString * _Nullable)avatar
nickname:(NSString * _Nullable)nickname
sign:(NSString * _Nullable)sign
userdata:(NSDictionary * _Nullable)userdata;
@end