123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //
- // WFCCNotificationMessageContent.m
- // WFChatClient
- //
- // Created by heavyrain on 2017/9/19.
- // Copyright © 2017年 WildFireChat. All rights reserved.
- //
- #import "WFCCTipNotificationMessageContent.h"
- #import "WFCCIMService.h"
- #import "WFCCNetworkService.h"
- #import "Common.h"
- @implementation WFCCTipNotificationContent
- - (WFCCMessagePayload *)encode {
- WFCCMessagePayload *payload = [[WFCCMessagePayload alloc] init];
- payload.contentType = [self.class getContentType];
-
- payload.content = self.tip;
- return payload;
- }
- - (void)decode:(WFCCMessagePayload *)payload {
- self.tip = payload.content;
- }
- + (int)getContentType {
- return MESSAGE_CONTENT_TYPE_TIP;
- }
- + (int)getContentFlags {
- return WFCCPersistFlag_PERSIST;
- }
- + (void)load {
- [[WFCCIMService sharedWFCIMService] registerMessageContent:self];
- }
- - (NSString *)formatNotification {
- return self.tip;
- }
- - (NSString *)digest {
- return self.tip;
- }
- @end
|