123456789101112131415161718192021222324252627282930313233343536 |
- //
- // WFCCUnknownMessageContent.m
- // WFChatClient
- //
- // Created by heavyrain on 2017/8/16.
- // Copyright © 2017年 WildFireChat. All rights reserved.
- //
- #import "WFCCUnknownMessageContent.h"
- #import "WFCCIMService.h"
- #import "Common.h"
- @implementation WFCCUnknownMessageContent
- - (WFCCMessagePayload *)encode {
- return nil;
- }
- - (void)decode:(WFCCMessagePayload *)payload {
- self.orignalType = payload.contentType;
- }
- + (int)getContentType {
- return MESSAGE_CONTENT_TYPE_UNKNOWN;
- }
- + (int)getContentFlags {
- return WFCCPersistFlag_PERSIST;
- }
- - (NSString *)digest {
- return [NSString stringWithFormat:@"未知类型消息(%zd)", self.orignalType];
- }
- @end
|