123456789101112131415161718192021222324252627282930313233343536 |
- #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:(WFCCMessage *)message {
- return [NSString stringWithFormat:@"未知类型消息(%zd)", self.orignalType];
- }
- @end
|