Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user