WFCCThingsLostEventContent.m 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // WFCCThingsLostEventContent.m
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/8/16.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCCThingsLostEventContent.h"
  9. #import "WFCCIMService.h"
  10. #import "Common.h"
  11. @implementation WFCCThingsLostEventContent
  12. - (WFCCMessagePayload *)encode {
  13. WFCCMessagePayload *payload = [super encode];
  14. payload.contentType = [self.class getContentType];
  15. return payload;
  16. }
  17. - (void)decode:(WFCCMessagePayload *)payload {
  18. [super decode:payload];
  19. }
  20. + (int)getContentType {
  21. return THINGS_CONTENT_TYPE_LOST_EVENT;
  22. }
  23. + (int)getContentFlags {
  24. return WFCCPersistFlag_TRANSPARENT;
  25. }
  26. + (void)load {
  27. [[WFCCIMService sharedWFCIMService] registerMessageContent:self];
  28. }
  29. - (NSString *)digest:(WFCCMessage *)message {
  30. return nil;
  31. }
  32. @end