- 命名空间: Limyee.Extensibility.Api.Version1
- 程序集: Limyee.Api.dll
定义
interface IAbusiveContent { Guid DataTypeId { get; } int DefiniteAbuseThreshold { get; } IAbusiveContentEvents Events { get; } int PossibleAbuseThreshold { get; } void ArchiveExpungedData(Guid abuseId, Guid contentId, Guid contentTypeId); void ArchiveExpungedData(Guid abuseId, Guid contentTypeId, Guid applicationId, Guid containerId, int createdByUserId, DateTime createdDate, string title, string body, string url, string xmlData); AbusiveContent Get(Guid contentId, Guid contentTypeId); void Ignore(Guid contentId, Guid contentTypeId); PagedList<AbusiveContent> List(AbusiveContentListOptions options); }
属性
名称 |
类型 |
描述 |
默认值 |
选项 |
DataTypeId |
Guid |
Abusive Content data type identifier |
||
DefiniteAbuseThreshold |
int |
Number of reports after which a piece of content will definitely be considered abusive.. |
||
Events |
IAbusiveContentEvents |
AbusiveContent events |
||
PossibleAbuseThreshold |
int |
Minimum number of reports required before content can be considered abusive. |
方法
void ArchiveExpungedData(Guid abuseId, Guid contentId, Guid contentTypeId);
Archive Expunged Data - move a copy of data to be expunged to database
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
abuseId |
Guid |
Abuse Id |
是 |
||
contentId |
Guid |
Content Id |
是 |
||
contentTypeId |
Guid |
Content Type ID |
是 |
void ArchiveExpungedData(Guid abuseId, Guid contentTypeId, Guid applicationId, Guid containerId, int createdByUserId, DateTime createdDate, string title, string body, string url, string xmlData);
Archive Expunged Data - move a copy of data to be expunged to database
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
abuseId |
Guid |
Abuse Id |
是 |
||
contentTypeId |
Guid |
Content Type ID |
是 |
||
applicationId |
Guid |
Application Id |
是 |
||
containerId |
Guid |
Container Id |
是 |
||
createdByUserId |
int |
Created by user Id |
是 |
||
createdDate |
DateTime |
Created date |
是 |
||
title |
string |
title |
是 |
||
body |
string |
Body |
是 |
||
url |
string |
Url |
是 |
||
xmlData |
string |
Option xml data to be included in archive |
是 |
AbusiveContent Get(Guid contentId, Guid contentTypeId);
Gets a single Abusive Content Record for a piece of content
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
contentId |
Guid |
Content Id |
是 |
||
contentTypeId |
Guid |
Content Type ID |
是 |
返回类型
AbusiveContent
void Ignore(Guid contentId, Guid contentTypeId);
Ignore content in the abuse management list. It will not be shown again until another report is made on it.
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
contentId |
Guid |
Content Id |
是 |
||
contentTypeId |
Guid |
Content Type Id |
是 |
PagedList<AbusiveContent> List(AbusiveContentListOptions options);
List Abusive Content
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
options |
AbusiveContentListOptions |
Options include: AuthorUserId, ContainerId, ApplicationId, ContentTypeId, StartCreateDate, EndCreateDate, StartReportDate, EndReportDate, AbuseState(Reported, AbusiveAppealed, ConfirmedAbusive, NotAbusive, Invalid, AppealRespondedByAuthor), SortBy (AbuseId, AuthorUserId, AuthorUsername), SortOrder (Asc, Desc), PageSize, PageIndex |
是 |
返回类型
PagedList<AbusiveContent>