No Description

FKProductRelativeItem.m 927B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // FKProductRelativeItem.m
  3. // FirstLink
  4. //
  5. // Created by jack on 16/3/25.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKProductRelativeItem.h"
  9. @implementation FKProductRelativeItem
  10. + (NSDictionary *)mts_mapping{
  11. return @{
  12. @"id": mts_key(itemId),
  13. @"name": mts_key(name),
  14. @"index_pic": mts_key(picUrl),
  15. @"title": mts_key(title),
  16. @"price": mts_key(price),
  17. @"refer_price": mts_key(referPrice),
  18. @"source": mts_key(source),
  19. @"status": mts_key(status),
  20. @"begin_time": mts_key(beginTime),
  21. @"object_type": mts_key(objectType),
  22. };
  23. }
  24. + (BOOL)mts_shouldSetUndefinedKeys{
  25. return NO;
  26. }
  27. - (BOOL)productOnLine{
  28. if ([self.status isKindOfClass:[NSString class]] && self.status.intValue == 1) {
  29. return YES;
  30. }
  31. return NO;
  32. }
  33. @end