123456789101112131415161718192021222324252627282930313233 |
- //
- // MessageBadge.m
- // FirstLink
- //
- // Created by ascii on 15/7/31.
- // Copyright (c) 2015年 FirstLink. All rights reserved.
- //
- #import "FKBadgeMessage.h"
- @implementation FKBadgeMessage
- + (NSDictionary*)mts_mapping
- {
- return @{@"sys_msg_num": mts_key(systemBadge),
- @"groupon_msg_num": mts_key(pindanBadge),
- @"comment_msg_num": mts_key(commentBadge),
- };
- }
- + (BOOL)mts_shouldSetUndefinedKeys
- {
- return NO;
- }
- - (NSInteger)totalBadge {
- return (self.systemBadge.integerValue
- + self.pindanBadge.integerValue
- + self.commentBadge.integerValue);
- }
- @end
|