WFCCMessageContent.m 758 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // WFCCMessageContent.m
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/8/15.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCCMessageContent.h"
  9. #import "Common.h"
  10. @implementation WFCCMessagePayload
  11. @end
  12. @implementation WFCCMediaMessagePayload
  13. @end
  14. @implementation WFCCMessageContent
  15. + (void)load {
  16. }
  17. - (WFCCMessagePayload *)encode {
  18. WFCCMessagePayload *payload = [[WFCCMessagePayload alloc] init];
  19. payload.extra = self.extra;
  20. return payload;
  21. }
  22. - (void)decode:(WFCCMessagePayload *)payload {
  23. self.extra = payload.extra;
  24. }
  25. + (int)getContentType {
  26. return 0;
  27. }
  28. + (int)getContentFlags {
  29. return 0;
  30. }
  31. - (NSString *)digest:(WFCCMessage *)message {
  32. return @"Unimplement digest function";
  33. }
  34. @end