Initial commit

This commit is contained in:
ifish
2017-08-15 16:59:01 +08:00
commit bdc83e07ef
5766 changed files with 423223 additions and 0 deletions
@@ -0,0 +1,20 @@
//
// IfishTaskModel.h
// Ifish
//
// Created by imac on 17/3/9.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface IfishTaskModel : NSObject
@property (nonatomic,copy) NSString *addType;
@property (nonatomic,copy) NSString *ruleType;
@property (nonatomic) BOOL isDone;
@property (nonatomic) NSInteger addGoldValue;
-(instancetype)initWithDict:(NSDictionary *)dict;
@end
@@ -0,0 +1,43 @@
//
// IfishTaskModel.m
// Ifish
//
// Created by imac on 17/3/9.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "IfishTaskModel.h"
@implementation IfishTaskModel
-(void)encodeWithCoder:(NSCoder*)aCoder{
[aCoder encodeObject:self.addType forKey:@"addType"];
[aCoder encodeObject:self.ruleType forKey:@"ruleType"];
[aCoder encodeBool:self.isDone forKey:@"isFinish"];
[aCoder encodeInteger:self.addGoldValue forKey:@"addValue"];
}
-(id)initWithCoder:(NSCoder*)aDecoder{
if (self= [super init]) {
self.addType=[aDecoder decodeObjectForKey:@"addType"];
self.ruleType=[aDecoder decodeObjectForKey:@"ruleType"];
self.isDone=[aDecoder decodeBoolForKey:@"isFinish"];
self.addGoldValue=[aDecoder decodeIntegerForKey:@"addValue"];
}
return self;
}
-(instancetype)initWithDict:(NSDictionary *)dict{
if (self= [super init]) {
self.addType = [dict objectForKey:@"addType"];
self.ruleType = [dict objectForKey:@"ruleType"];
self.isDone = [[dict objectForKey:@"isFinish"] boolValue];
self.addGoldValue = [[dict objectForKey:@"addValue"] integerValue];
}
return self;
}
@end
@@ -0,0 +1,19 @@
//
// IfishTaskRuletype.h
// Ifish
//
// Created by imac on 17/3/15.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface IfishTaskRuletype : NSObject
@property (nonatomic,copy) NSString *taskId;
@property (nonatomic,copy) NSString *addType;
@property (nonatomic,copy) NSString *ruleType;
@property (nonatomic,copy) NSString *ruleTitle;
@property (nonatomic,copy) NSString *ruleDetail;
-(instancetype)initWithDict:(NSDictionary *)dict;
@end
@@ -0,0 +1,23 @@
//
// IfishTaskRuletype.m
// Ifish
//
// Created by imac on 17/3/15.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "IfishTaskRuletype.h"
@implementation IfishTaskRuletype
-(instancetype)initWithDict:(NSDictionary *)dict{
if (self= [super init]) {
_ruleType = dict[@"ruleType"];
_ruleTitle = dict[@"ruleTitle"];
_ruleDetail = dict[@"ruleDetail"];
_addType = dict[@"addType"];
_taskId = dict[@"taskId"];
}
return self;
}
@end