2023-07-27 09:20:00 +08:00
|
|
|
|
//
|
|
|
|
|
|
// User.h
|
|
|
|
|
|
// BabyAlbum
|
|
|
|
|
|
//
|
|
|
|
|
|
// Created by mambaxie on 2021/7/27.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
UIKIT_EXTERN NSString * const AppReviewVipTimeKey;
|
|
|
|
|
|
UIKIT_EXTERN NSUInteger const SecurityCodeLength;
|
|
|
|
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSUInteger, GenderType) {
|
|
|
|
|
|
GenderTypeUnknown = 0,
|
|
|
|
|
|
GenderTypeMan = 1,
|
|
|
|
|
|
GenderTypeWoman = 2,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSUInteger, RelationType) {
|
|
|
|
|
|
RelationTypeNone = 0, // 互不关注
|
|
|
|
|
|
RelationTypeFollowing = 1, // 我关注的
|
|
|
|
|
|
RelationTypeFollower = 2, // 关注我
|
|
|
|
|
|
RelationTypeFriends = 3 // 好友
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef NS_ENUM(int, VIPKind) {
|
|
|
|
|
|
VIPKindExpired = -1, // 会员到期
|
|
|
|
|
|
VIPKindNone = 0, // 非会员
|
|
|
|
|
|
VIPKindNormal = 1, // 普通会员
|
|
|
|
|
|
VIPKindYear = 10, // 年会员
|
|
|
|
|
|
VIPKindForever = 100, // 永久会员
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
@interface UserOtherInfo : NSObject
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) RelationType relation;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *vip_flag_img;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *relation_str;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) VIPKind vip_kind;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) int user_id;
|
|
|
|
|
|
@property (nonatomic, assign) int is_manager;
|
|
|
|
|
|
//@property (nonatomic, assign) GenderType user_gender;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *gender_str;
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<NSString *> *want_genders;
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)isVIP;
|
|
|
|
|
|
|
|
|
|
|
|
- (void)updateFollowState:(BOOL)isFollow;
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)isFollowing;
|
|
|
|
|
|
|
|
|
|
|
|
- (UIImage *)genderImage;
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface User : NSObject
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *pay_token;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *avatar;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *birthday;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *age;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *city;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *district;
|
|
|
|
|
|
@property (nonatomic, assign) int followed_user_count;
|
|
|
|
|
|
@property (nonatomic, assign) int friend_count;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) int ID;
|
|
|
|
|
|
//@property (nonatomic, assign) GenderType gender;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *intro;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *vip_time;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *cover_img;
|
2023-07-31 09:33:00 +08:00
|
|
|
|
@property (nonatomic, copy) NSString *vip_exp_date;
|
2023-07-27 09:20:00 +08:00
|
|
|
|
@property (nonatomic, copy) NSString *nickname;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *phone;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *province;
|
|
|
|
|
|
@property (nonatomic, assign) int user_followed_count;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) int new_friend_count; //互关
|
|
|
|
|
|
@property (nonatomic, assign) int new_user_followed_count; //关注
|
|
|
|
|
|
@property (nonatomic, assign) int new_followed_user_count; //粉丝
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) NSString *subject;
|
|
|
|
|
|
@property (nonatomic, strong) NSString *location;
|
|
|
|
|
|
@property (nonatomic, assign) RelationType relation; //
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, strong) NSString *introduce;
|
|
|
|
|
|
@property (nonatomic, assign) int recent_act_num;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *youth_no;
|
|
|
|
|
|
//V1.5.0 移除,使用token里的is_clone
|
|
|
|
|
|
//@property (nonatomic, assign) BOOL is_clone; // 是否是分身
|
|
|
|
|
|
@property (nonatomic, copy) NSString *updatedAt;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *security_code;
|
|
|
|
|
|
@property (nonatomic, assign) int is_security_on;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *vip_flag_img;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) VIPKind vip_kind;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL is_manager;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL is_default_avatar;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL is_new_clone;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *gender_str;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *gender_change; //该参数不为0时,无法修改用户性别
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<NSString *> *want_genders;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL is_mask_relation; // YES 好友&关注&被关注显示* 不显示具体数值
|
|
|
|
|
|
- (BOOL)isSelf;
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)isVIP;
|
|
|
|
|
|
|
|
|
|
|
|
- (void)updateFollowState:(BOOL)isFollow;
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)isFollowing;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *im_user_id;
|
|
|
|
|
|
|
|
|
|
|
|
- (UIImage *)genderImage;
|
|
|
|
|
|
- (UIColor *)genderColor;
|
|
|
|
|
|
- (UIColor *)genderBGColor;
|
|
|
|
|
|
+ (CGSize)genderSize;
|
|
|
|
|
|
+ (UIImage *)genderImageWithGenderStr:(NSString *)genderStr;
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|