Initial commit
This commit is contained in:
BIN
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// IfishBannerData.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/22.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface IfishBannerData : NSObject
|
||||
|
||||
@property(nonatomic)NSInteger adId;
|
||||
@property(nonatomic)NSInteger adType;
|
||||
@property(nonatomic,copy)NSString *adImage;
|
||||
@property(nonatomic,copy)NSString *adLink;
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// IfishBannerData.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/22.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishBannerData.h"
|
||||
|
||||
@implementation IfishBannerData
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
if (self = [super init]) {
|
||||
_adId = [[dict objectForKey:@"adId"] integerValue];
|
||||
_adType = [[dict objectForKey:@"adType"] integerValue];
|
||||
_adImage = [dict objectForKey:@"adImage"];
|
||||
_adLink = [dict objectForKey:@"adLink"];
|
||||
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user