2025-10-09 16:48:46 +08:00

35 lines
1.0 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// NIMAntispamManagerProtocol.h
// NIMLib
//
// Created by chris on 2018/3/9.
// Copyright © 2018年 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class NIMLocalAntiSpamCheckOption;
@class NIMLocalAntiSpamCheckResult;
/**
* 反垃圾协议
*/
@protocol NIMAntispamManager <NSObject>
/**
* 本地反垃圾检查器
*
* @param option 本地反垃圾检查选项
* @param error 错误提示
* @discussion 此扩展不会漫游到其他端,上层需要保证 NSDictionary 可以转换为 JSON。
* @return 本地反垃圾检查结果,本地反垃圾列表会在每次登录后同步更新
* 因为网络问题或者没有登录都会导致本地反垃圾列表无效的情况error 中会包含具体出错原因
*/
- (nullable NIMLocalAntiSpamCheckResult *)checkLocalAntispam:(NIMLocalAntiSpamCheckOption *)option
error:(NSError **)error;
@end
NS_ASSUME_NONNULL_END