Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// IfishInformations.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/13.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface IfishInformations : NSObject
|
||||
|
||||
@property (nonatomic) int clickNum;
|
||||
@property (nonatomic) int pinglunNum;
|
||||
@property (nonatomic,copy) NSString *contents;
|
||||
@property (nonatomic,copy) NSString *image;
|
||||
@property (nonatomic) int infoId;
|
||||
@property (nonatomic,copy) NSString *link;
|
||||
@property (nonatomic,copy) NSString *title;
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
@end
|
||||
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// IfishInformations.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/13.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishInformations.h"
|
||||
|
||||
@implementation IfishInformations
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
if (self=[super init]) {
|
||||
_clickNum = [[dict objectForKey:@"clickNum"] intValue];
|
||||
_contents = [dict objectForKey:@"contents"];
|
||||
_image = [dict objectForKey:@"image"];
|
||||
_infoId = [[dict objectForKey:@"infoId"] intValue];
|
||||
_link = [dict objectForKey:@"link"];
|
||||
_pinglunNum = [[dict objectForKey:@"pinglunNum"] intValue];
|
||||
_title = [dict objectForKey:@"title"];
|
||||
|
||||
}
|
||||
return self;
|
||||
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user