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.
48 lines
1.1 KiB
48 lines
1.1 KiB
// |
|
// TFUserCenterModel.m |
|
// TFReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/11. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import "TFUserCenterModel.h" |
|
|
|
@implementation TFUserCenterModel |
|
|
|
+ (NSDictionary<NSString *, id> *)modelCustomPropertyMapper |
|
{ |
|
return @{ |
|
@"vip" : @"is_vip", |
|
@"masterUnit" : @"unit", |
|
@"masterRemain" : @"goldRemain", |
|
@"subRemain" : @"silverRemain" |
|
}; |
|
} |
|
|
|
+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary |
|
{ |
|
TFUserCenterModel *t_model = [super modelWithDictionary:dictionary]; |
|
NSMutableArray<NSArray <TFUserCenterListModel *> *> *t_list = [NSMutableArray array]; |
|
for (NSArray *obj in t_model.panel_list) { |
|
NSArray<TFUserCenterListModel *> *arr = [NSArray modelArrayWithClass:TFUserCenterListModel.class json:obj]; |
|
[t_list addObject:arr]; |
|
} |
|
t_model.panel_list = t_list; |
|
return t_model; |
|
} |
|
|
|
@end |
|
|
|
|
|
|
|
@implementation TFUserCenterListModel |
|
|
|
+ (NSDictionary<NSString *, id> *)modelCustomPropertyMapper |
|
{ |
|
return @{ |
|
@"enable" : @"is_click" |
|
}; |
|
} |
|
|
|
@end
|
|
|