// // FKProductRelativeItem.m // FirstLink // // Created by jack on 16/3/25. // Copyright © 2016年 FirstLink. All rights reserved. // #import "FKProductRelativeItem.h" @implementation FKProductRelativeItem + (NSDictionary *)mts_mapping{ return @{ @"id": mts_key(itemId), @"name": mts_key(name), @"index_pic": mts_key(picUrl), @"title": mts_key(title), @"price": mts_key(price), @"refer_price": mts_key(referPrice), @"source": mts_key(source), @"status": mts_key(status), @"begin_time": mts_key(beginTime), @"object_type": mts_key(objectType), }; } + (BOOL)mts_shouldSetUndefinedKeys{ return NO; } - (BOOL)productOnLine{ if ([self.status isKindOfClass:[NSString class]] && self.status.intValue == 1) { return YES; } return NO; } @end