1234567891011121314151617181920212223242526272829303132 |
- //
- // LZChatRoomReloadAttachment.m
- // VQU
- //
- // Created by CY on 2021/11/4.
- // Copyright © 2021 MS. All rights reserved.
- //
- #import "YOUPAILZChatRoomReloadSeatAttachment.h"
- @implementation YOUPAILZChatRoomReloadSeatAttachment
- - (NSString *)encodeAttachment{
- NSDictionary *dict = @{
- CMType : @(CustomOnReloadChatRoomSeat),
- CMData : @{
- CMNormal: self.normal?self.normal:@[],
- CMHost: self.host?self.host:@{},
- }
- };
- NSData *data = [NSJSONSerialization dataWithJSONObject:dict
- options:0
- error:nil];
- NSString *content = nil;
- if (data) {
- content = [[NSString alloc] initWithData:data
- encoding:NSUTF8StringEncoding];
- }
- return content;
- }
- @end
|