1234567891011121314151617181920212223242526272829 |
- //
- // FKHomeReform.m
- // FirstLink
- //
- // Created by 施昌鹏 on 16/7/16.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKHomeReform.h"
- @implementation FKHomeReform
- +(NSInteger)parseCouponCount:(NSDictionary *)json {
- NSNumber *res = json[@"data"][@"count"];
- if ([res isKindOfClass:[NSNumber class]]) {
- return res.integerValue;
- }
- return 0;
- }
- +(NSString *)parseServerTime:(NSDictionary *)json {
- if ([json[@"data"][@"server_time"] isKindOfClass:[NSString class]]) {
- return json[@"data"][@"server_time"];
- }
- return nil;
- }
- @end
|