26 lines
653 B
Objective-C
26 lines
653 B
Objective-C
//
|
|
// XPAnchorAttentSendInfo.m
|
|
// xplan-ios
|
|
//
|
|
// Created by GreenLand on 2022/2/15.
|
|
//
|
|
|
|
#import "XPAnchorAttentSendInfo.h"
|
|
#import "NSMutableDictionary+Saft.h"
|
|
@implementation XPAnchorAttentSendInfo
|
|
|
|
- (NSDictionary *)encodeAttachemt {
|
|
|
|
NSMutableDictionary * info = [NSMutableDictionary dictionary];
|
|
[info safeSetObject:self.nick forKey:@"nick"];
|
|
[info safeSetObject:@(self.targetUid) forKey:@"targetUid"];
|
|
[info safeSetObject:self.targetNick forKey:@"targetNick"];
|
|
|
|
NSMutableDictionary * dic = [NSMutableDictionary dictionary];
|
|
[dic safeSetObject:@(self.uid) forKey:@"uid"];
|
|
[dic safeSetObject:info forKey:@"data"];
|
|
return info;
|
|
}
|
|
|
|
@end
|