ifish/Ifish/controllers/IfishTabControllers/探索/GoldCoast/model/DiscountCoupon.m

33 lines
1.1 KiB
Objective-C

//
// DiscountCoupon.m
// Ifish
//
// Created by imac on 2017/4/26.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "DiscountCoupon.h"
@implementation DiscountCoupon
-(instancetype)initWithDict:(NSDictionary *)dict
{
if (self=[super init]) {
_couponId = [[dict objectForKey:@"couponId"] intValue];
_moneyValue = [[dict objectForKey:@"moneyValue"] intValue];
_needGold = [[dict valueForKey:@"needGold"] integerValue];
_useNeedMoney = [dict objectForKey:@"useNeedMoney"] ;
_upperLimit = [dict objectForKey:@"upperLimit"] ;
_tagText = [dict objectForKey:@"tagText"];
_validStartDate = [dict objectForKey:@"validStartDate"];
_validEndDate = [dict objectForKey:@"validEndDate"];
_exchangeCount = [dict objectForKey:@"exchangeCount"];
_couponNumber = [dict objectForKey:@"couponNumber"];
_activationCode = [dict objectForKey:@"activationCode"];
_isUsed = [[dict valueForKey:@"isUsed"] boolValue];
_createTime = [dict objectForKey:@"createTime"];
}
return self;
}
@end