Sin descripción

FKAppMessage.m 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // SystemMessage.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 14/12/26.
  6. // Copyright (c) 2014年 FirstLink. All rights reserved.
  7. //
  8. #import "FKAppMessage.h"
  9. @implementation FKAppMessage
  10. + (NSDictionary*)mts_mapping
  11. {
  12. return @{@"id": mts_key(msgID),
  13. @"object_id": mts_key(itemID),
  14. @"status": mts_key(status),
  15. @"owner_id": mts_key(ownerID),
  16. @"object_type": mts_key(itemType),
  17. @"description": mts_key(desc),
  18. @"first_pic": mts_key(firstPicURL),
  19. @"target_url": mts_key(targetURL),
  20. @"reply_user_id": mts_key(replyUserID),
  21. @"message_title": mts_key(title),
  22. @"content": mts_key(content),
  23. @"sponsor_id": mts_key(sponsorID),
  24. @"nickname": mts_key(nickname),
  25. @"head_pic": mts_key(headURL),
  26. @"message_type": mts_key(msgType),
  27. @"event_type": mts_key(eventType),
  28. @"create_time": mts_key(createTime),
  29. };
  30. }
  31. + (BOOL)mts_shouldSetUndefinedKeys
  32. {
  33. return NO;
  34. }
  35. - (NSString*)tipForLatestMessage {
  36. return [NSString stringWithFormat:@"%@ 评论了你", self.nickname];
  37. }
  38. @end