NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatMessageAntispamSetting.h
浏览该文件的文档.
1//
2// NIMQChatMessageAntispamSetting.h
3// NIMLib
4//
5// Created by Evang on 2022/3/23.
6// Copyright © 2022 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12/**
13 * 圈组消息反垃圾设置
14 */
15@interface NIMQChatMessageAntispamSetting : NSObject
16
17/**
18* 指定是否需要使用自定义反垃圾字段(即antiSpamContent), YES:不需要,NO:需要, 默认NO, *一般使用的情况是通用反垃圾转易盾
19*
20*/
21@property (nonatomic, assign) BOOL enableAntiSpamContent;
22
23/**
24* 开发者自定义的反垃圾字段
25* @discussion 如果提供了这个字段, 在过反垃圾时不会再使用content或者attach
26*/
27@property (nullable,nonatomic,copy) NSString *antiSpamContent;
28
29/**
30* 用户配置的对某些单条消息另外的反垃圾的业务ID
31*/
32@property (nullable,nonatomic,copy) NSString *antiSpamBusinessId;
33
34/**
35* 此条消息是否使用易盾反垃圾, NO:(在开通易盾的情况下)表示这条消息不过易盾反垃圾, 其他都是按照原来的规则
36*/
37@property (nonatomic, assign) BOOL antiSpamUsingYidun;
38
39/**
40* 易盾check的回调URL, 目前仅支持Audio类型的消息, 最长256个字符, 如果不合法则忽略该参数
41*/
42@property (nullable,nonatomic,copy) NSString *yidunCallback;
43
44/**
45* 易盾反垃圾增强反作弊专属字段
46* @discussion 透传易盾反垃圾增强反作弊专属字段
47*/
48@property (nullable,nonatomic,copy) NSDictionary *yidunAntiCheating;
49
50/**
51 * 易盾反垃圾扩展字段,限制json,长度限制1024
52 */
53@property (nullable,nonatomic,copy) NSString *yidunAntiSpamExt;
54
55
56@end
57
58NS_ASSUME_NONNULL_END
Definition: NIMQChatMessageAntispamSetting.h:16
NSString * antiSpamContent
Definition: NIMQChatMessageAntispamSetting.h:27
NSString * yidunAntiSpamExt
Definition: NIMQChatMessageAntispamSetting.h:53
BOOL antiSpamUsingYidun
Definition: NIMQChatMessageAntispamSetting.h:37
NSString * yidunCallback
Definition: NIMQChatMessageAntispamSetting.h:42
BOOL enableAntiSpamContent
Definition: NIMQChatMessageAntispamSetting.h:21
NSString * antiSpamBusinessId
Definition: NIMQChatMessageAntispamSetting.h:32
NSDictionary * yidunAntiCheating
Definition: NIMQChatMessageAntispamSetting.h:48