No Description

FKProductAdviseItem.m 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // FKProductAdviseItem.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 16/1/26.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKProductAdviseItem.h"
  9. @implementation FKProductAdviseItem
  10. + (NSDictionary *)mts_mapping
  11. {
  12. return @{@"id": mts_key(itemID),
  13. @"object_id": mts_key(productID),
  14. @"object_type": mts_key(objectType),
  15. @"question_user_id": mts_key(qUserID),
  16. @"question_user_nickname": mts_key(qUsername),
  17. @"question_user_head_pic": mts_key(qUserHeadURL),
  18. @"question_time": mts_key(qTime),
  19. @"question": mts_key(qContent),
  20. @"answer_user_id": mts_key(aUserID),
  21. @"answer_user_nickname": mts_key(aUsername),
  22. @"answer_user_head_pic": mts_key(aUserHeadURL),
  23. @"answer_time": mts_key(aTime),
  24. @"answer": mts_key(aContent),
  25. };
  26. }
  27. + (BOOL)mts_shouldSetUndefinedKeys
  28. {
  29. return NO;
  30. }
  31. - (BOOL)isExistAnswer {
  32. if (self.aContent.length > 0) {
  33. return YES;
  34. }
  35. return NO;
  36. }
  37. @end