123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- //
- // YOUPAILZLiveModel.m
- // TIANYAN
- //
- // Created by CY on 2021/5/17.
- // Copyright © 2021 leo. All rights reserved.
- //
- #import "YOUPAILZLiveModel.h"
- @implementation LZLiveAnchorRankInfoContentModel
- + (NSDictionary *)mj_replacedKeyFromPropertyName
- {
- return @{
- @"youpaipval":@"val",
- @"youpaipdetail":@"detail",
- };
- }
- @end
- @implementation LZLiveAnchorRankInfoModel
- + (NSDictionary *)mj_replacedKeyFromPropertyName
- {
- return @{
-
- @"youpaipno":@"no",
- @"youpaiptotalMoney":@"totalMoney",
- @"youpaipgapMoney":@"gapMoney",
- };
- }
- @end
- @implementation LZLiveTopThreeModel
- + (NSDictionary *)mj_replacedKeyFromPropertyName
- {
- return @{
- @"youpaipid":@"id",
- @"youpaipavatar":@"avatar",
- @"youpaipscore":@"score",
- };
- }
- @end
- @implementation YOUPAILZLiveModel
- + (NSDictionary*)mj_objectClassInArray{
- return @{
- @"youpaiplive_top_three" : [LZLiveTopThreeModel class]
- };
- }
- - (UIFont *)maxFont{
- return LCFont(18.0f);
- }
- - (UIFont *)minFont{
- return LCFont(14.0f);
- }
- - (CGFloat)youpaifnoticeTextHeight{
- CGRect fr = [self.youpaipnotice_text boundingRectWithSize:CGSizeMake(246.0f, CGFLOAT_MAX) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:self.youpaipisMaxFont ? self.youpaipmaxFont : self.youpaipminFont} context:nil];
- return fr.size.height + 20.0;
- }
- + (NSDictionary *)mj_replacedKeyFromPropertyName
- {
- return @{
- @"youpaiplive_id":@"live_id",
- @"youpaiproomid":@"roomid",
- @"youpaipcharm_value":@"charm_value",
- @"youpaipfans_count":@"fans_count",
- @"youpaiproom_title":@"room_title",
- @"youpaipnotice_text":@"notice_text",
- @"youpaipuser_info":@"user_info",
- @"youpaippk_info":@"pk_info",
- @"youpaipscreenshots":@"screenshots",
- @"youpaipis_virtual":@"is_virtual",
- @"youpaipcoverimg":@"coverimg",
- @"youpaipanchor_rank_info":@"anchor_rank_info",
- @"youpaiprank_top_three":@"rank_top_three",
- @"youpaiprecommend_gift":@"recommend_gift",
- @"youpaiplive_top_three":@"live_top_three",
- @"youpaipmaxFont":@"maxFont",
- @"youpaipminFont":@"minFont",
- @"youpaipisMaxFont":@"isMaxFont",
- @"youpaiptype":@"type",
- @"youpaipis_fly":@"is_fly",
- @"youpaipu_data":@"u_data",
- @"youpaipis_fly_car":@"is_fly_car",
- @"youpaipcar_data":@"car_data",
- @"youpaipis_fly_noble":@"is_fly_noble",
- @"youpaipb_box_data":@"b_box_data",
- @"youpaipis_comein_room_hide":@"is_comein_room_hide",
- };
- }
- @end
|