1234567891011121314151617181920212223242526272829303132333435 |
- //
- // YOUPAILZLiveManageAttachment.m
- // VQU
- //
- // Created by CY on 2021/8/25.
- // Copyright © 2021 MS. All rights reserved.
- //
- #import "YOUPAILZLiveManageAttachment.h"
- @implementation YOUPAILZLiveManageAttachment
- - (NSString *)encodeAttachment
- {
- NSDictionary *dict = @{
- CMType : @(CustomOnLiveManage),
- CMData : @{
- CMForbiddenUid: self.forbidden_uid?self.forbidden_uid:@"",
- CMName: self.name?self.name:@"",
- CMDes: self.des?self.des:@"",
- CMUserDes: self.user_des?self.user_des:@"",
- }
- };
- NSData *data = [NSJSONSerialization dataWithJSONObject:dict
- options:0
- error:nil];
- NSString *content = nil;
- if (data) {
- content = [[NSString alloc] initWithData:data
- encoding:NSUTF8StringEncoding];
- }
- return content;
- }
- @end
|