-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
3,236 additions
and
42 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// CurrencyModel.h | ||
// box-Staff-Manager | ||
// | ||
// Created by Yu Huang on 2018/4/16. | ||
// Copyright © 2018年 2se. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface CurrencyModel : NSObject | ||
|
||
/** 币种名称 */ | ||
@property (nonatomic,strong) NSString *currency; | ||
/** 币种地址 */ | ||
@property (nonatomic,strong) NSString *address; | ||
@property (nonatomic,assign) BOOL select; | ||
@property (nonatomic,assign) NSInteger state; | ||
@property (nonatomic,strong) NSString *limit; | ||
|
||
- (instancetype)initWithDict:(NSDictionary *)dict; | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// CurrencyModel.m | ||
// box-Staff-Manager | ||
// | ||
// Created by Yu Huang on 2018/4/16. | ||
// Copyright © 2018年 2se. All rights reserved. | ||
// | ||
|
||
#import "CurrencyModel.h" | ||
|
||
@implementation CurrencyModel | ||
|
||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{ | ||
|
||
} | ||
|
||
- (instancetype)initWithDict:(NSDictionary *)dict | ||
{ | ||
if (self = [super init]) | ||
{ | ||
if(![dict[@"currency"] isKindOfClass:[NSNull class]]){ | ||
self.currency = [dict objectForKey:@"currency"]; | ||
} | ||
if(![dict[@"address"] isKindOfClass:[NSNull class]]){ | ||
self.address = [dict objectForKey:@"address"]; | ||
} | ||
if(![dict[@"select"] isKindOfClass:[NSNull class]]){ | ||
self.select = [[dict objectForKey:@"select"] boolValue]; | ||
} | ||
if(![dict[@"state"] isKindOfClass:[NSNull class]]){ | ||
self.state = [[dict objectForKey:@"state"] integerValue]; | ||
} | ||
if(![dict[@"limit"] isKindOfClass:[NSNull class]]){ | ||
self.limit = [dict objectForKey:@"limit"]; | ||
} | ||
} | ||
return self; | ||
} | ||
|
||
@end | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.