YOUPAILZChatRoomBlindDateSelectedAttrchment.m 928 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // YOUPAILZChatRoomBlindDateSelectedAttrchment.m
  3. // YOUQU
  4. //
  5. // Created by CY on 2021/12/17.
  6. // Copyright © 2021 MS. All rights reserved.
  7. //
  8. #import "YOUPAILZChatRoomBlindDateSelectedAttrchment.h"
  9. @implementation YOUPAILZChatRoomBlindDateSelectedAttrchment
  10. - (NSString *)encodeAttachment{
  11. NSDictionary *dict = @{
  12. CMType : @(CustomOnChatRoomBlindDateSelected),
  13. CMData : @{
  14. }
  15. };
  16. NSData *data = [NSJSONSerialization dataWithJSONObject:dict
  17. options:0
  18. error:nil];
  19. NSString *content = nil;
  20. if (data) {
  21. content = [[NSString alloc] initWithData:data
  22. encoding:NSUTF8StringEncoding];
  23. }
  24. return content;
  25. }
  26. @end