Files
featherVoice/QXLive/Mine(音域)/Model/QXUserModel.m

117 lines
2.2 KiB
Mathematica
Raw Normal View History

2025-08-08 10:49:36 +08:00
//
// QXUserModel.m
// QXLive
//
// Created by on 2025/5/19.
//
#import "QXUserModel.h"
@implementation QXUserModel
@end
@implementation QXUserHomeModel
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
2025-11-21 16:17:05 +08:00
return @{
@"tag_list" : @"QXUserTag",
2025-12-01 18:42:49 +08:00
@"cp_info": @"QXUserCpInfoModel",
@"master": @"QXUserHomeModel",
2025-11-21 16:17:05 +08:00
};
2025-08-08 10:49:36 +08:00
}
2025-10-30 18:30:45 +08:00
-(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;
}
2025-08-08 10:49:36 +08:00
@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 @{
2025-11-21 16:17:05 +08:00
// @"qinmi" : @"QXRelationshipListModel",
// @"zhenai" : @"QXRelationshipListModel"
2025-12-01 18:42:49 +08:00
@"cp_info": @"QXUserCpInfoModel",
@"master": @"QXUserHomeModel",
2025-08-08 10:49:36 +08:00
};
}
@end
@implementation QXRelationshipList
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
return @{
@"qinmi" : @"QXRelationshipListModel",
@"zhenai" : @"QXRelationshipListModel"
};
}
@end
@implementation QXRelationshipListModel
@end
2025-11-21 16:17:05 +08:00
@implementation QXUserCpInfoModel
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
return @{
// @"qinmi" : @"QXRelationshipListModel",
// @"zhenai" : @"QXRelationshipListModel"
@"user_info1": @"QXUserModel",
@"user_info2": @"QXUserModel",
2025-11-28 22:43:06 +08:00
@"gift_log" : @"QXUserHeartBeatSpaceLogModel"
2025-11-21 16:17:05 +08:00
};
}
2025-11-28 22:43:06 +08:00
@end
@implementation QXUserHeartBeatSpaceLogModel
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
return @{
// @"qinmi" : @"QXRelationshipListModel",
// @"zhenai" : @"QXRelationshipListModel"
@"from_user_info": @"QXUserModel",
@"to_user_info": @"QXUserModel",
};
}
2025-11-21 16:17:05 +08:00
@end