Aucune description

FKBrandSubscribeItem.m 603B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // FKBrandSubscribeItem.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 16/4/22.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKBrandSubscribeItem.h"
  9. @implementation FKBrandSubscribeItem
  10. + (NSDictionary*)mts_mapping {
  11. return @{@"id": mts_key(itemID),
  12. @"name": mts_key(name),
  13. @"pic_url": mts_key(photoURL),
  14. @"subscribe": mts_key(status),
  15. };
  16. }
  17. + (BOOL)mts_shouldSetUndefinedKeys {
  18. return NO;
  19. }
  20. - (BOOL)isSubscribed {
  21. if ([self.status isEqualToString:@"1"]) {
  22. return YES;
  23. }
  24. return NO;
  25. }
  26. @end