100 lines
1.8 KiB
Objective-C
100 lines
1.8 KiB
Objective-C
//
|
|
// QXUserModel.m
|
|
// QXLive
|
|
//
|
|
// Created by 启星 on 2025/5/19.
|
|
//
|
|
|
|
#import "QXUserModel.h"
|
|
|
|
@implementation QXUserModel
|
|
|
|
@end
|
|
|
|
|
|
@implementation QXUserHomeModel
|
|
|
|
|
|
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
|
return @{
|
|
@"tag_list" : @"QXUserTag",
|
|
@"cp_info": @"QXUserCpInfoModel"
|
|
};
|
|
}
|
|
|
|
|
|
-(instancetype)copyModel{
|
|
QXUserHomeModel *copy = [[QXUserHomeModel alloc] init];
|
|
copy.user_id = self.user_id;
|
|
copy.user_code = self.user_code;
|
|
copy.avatar = self.avatar;
|
|
copy.sex = self.sex;
|
|
copy.dress = self.dress;
|
|
copy.nickname = self.nickname;
|
|
return copy;
|
|
}
|
|
@end
|
|
|
|
|
|
@implementation QXUserTag
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
@implementation QXUserGiftWallModel
|
|
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
|
return @{@"top_users" : @"QXUserHomeModel"};
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
@implementation QXRoomUserInfoModel
|
|
|
|
+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper{
|
|
return @{@"pohoulong" : @"is_room_owner"};
|
|
}
|
|
|
|
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
|
return @{
|
|
// @"qinmi" : @"QXRelationshipListModel",
|
|
// @"zhenai" : @"QXRelationshipListModel"
|
|
@"cp_info": @"QXUserCpInfoModel"
|
|
};
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
@implementation QXRelationshipList
|
|
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
|
return @{
|
|
@"qinmi" : @"QXRelationshipListModel",
|
|
@"zhenai" : @"QXRelationshipListModel"
|
|
};
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
@implementation QXRelationshipListModel
|
|
|
|
|
|
@end
|
|
|
|
|
|
@implementation QXUserCpInfoModel
|
|
|
|
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
|
return @{
|
|
// @"qinmi" : @"QXRelationshipListModel",
|
|
// @"zhenai" : @"QXRelationshipListModel"
|
|
@"user_info1": @"QXUserModel",
|
|
@"user_info2": @"QXUserModel",
|
|
};
|
|
}
|
|
|
|
@end
|