| 12345678910111213141516171819202122232425262728293031 |
- //
- // YBGiftModel.m
- // iphoneLive
- //
- // Created by YB007 on 2019/8/20.
- // Copyright © 2019 cat. All rights reserved.
- //
- #import "YBGiftModel.h"
- @implementation YBGiftModel
- - (instancetype)initWithDic:(NSDictionary *)dic
- {
- self = [super init];
- if (self) {
-
- _idStr = minstr([dic valueForKey:@"id"]);
- _typeStr = minstr([dic valueForKey:@"type"]);
- _giftNameStr = minstr([dic valueForKey:@"giftname"]);
- _needCoinStr = minstr([dic valueForKey:@"needcoin"]);
- _needCoinNameStr = minstr([dic valueForKey:@"needcoin_name"]);
- _giftIconStr = minstr([dic valueForKey:@"gifticon"]);
- }
- return self;
- }
- +(instancetype)modelWithDic:(NSDictionary *)dic;{
- return [[self alloc]initWithDic:dic];
- }
- @end
|