文章 IAbusiveContent 类

  • 命名空间: 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>