12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // KSRejectAllSeatMessage.m
- // TeacherDaya
- //
- // Created by 王智 on 2022/7/18.
- // Copyright © 2022 DayaMusic. All rights reserved.
- //
- #import "KSRejectAllSeatMessage.h"
- @implementation KSRejectAllSeatMessage
- - (NSData *)encode {
- NSMutableDictionary *multableDict = [NSMutableDictionary dictionary];
- if (self.senderUserInfo) {
- [multableDict setObject:[self encodeUserInfo:self.senderUserInfo] forKey:@"user"];
- }
- return [NSJSONSerialization dataWithJSONObject:multableDict options:kNilOptions error:nil];
- }
- - (void)decodeWithData:(NSData *)data {
- if (data == nil) return;
- NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
- NSDictionary *json = [[NSDictionary alloc] initWithDictionary:dictionary];
- if (json == nil) return;
- NSDictionary *userinfoDic = dictionary[@"user"];
- [self decodeUserInfo:userinfoDic];
- }
- + (NSString *)getObjectName {
- return @"RC:Chatroom:RejectSeatAll";
- }
- - (NSArray<NSString *> *)getSearchableWords {
- return nil;
- }
- + (RCMessagePersistent)persistentFlag {
- return MessagePersistent_NONE;
- }
- @end
|