文章 Abuse 服务

  • 调用: Apis.Get<Limyee.Extensibility.Api.Version1.IAbuse>()
  • 程序集: Limyee.Api.dll

属性

名称

类型

描述

默认值

选项

AbusiveContent

IAbusiveContent

AbusiveContent

Appeals

IAbuseAppeals

AbuseAppeals

Reports

IAbuseReports

AbuseReports

方法

bool CanUserReviewAppeals(Guid contentId, int userId);

Indicates that user has permissions to review appeals on a specific content item. Deprecated: Use CanUserReviewAppeals(Guid, Guid, int) instead.

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

userId

int

User Id

返回类型

bool

bool CanUserReviewAppeals(Guid contentId, Guid contentTypeId, int userId);

Indicates that user has permissions to review appeals on a specific content item

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

contentTypeId

Guid

Content Type Id

userId

int

User Id

返回类型

bool

bool CanUserReviewAppealsInApplication(Guid applicationId, Guid applicationTypeId, int userId);

Indicates that user has permissions to review appeals within an application

参数

名称

类型

描述

必需

默认值

选项

applicationId

Guid

Application Id

applicationTypeId

Guid

Application Type Id

userId

int

User Id

返回类型

bool

bool CanUserReviewAppealsInContainer(Guid containerId, Guid containerTypeId, int userId);

Indicates that user has permissions to review appeals within a container

参数

名称

类型

描述

必需

默认值

选项

containerId

Guid

Container Id

containerTypeId

Guid

Container Type Id

userId

int

User Id

返回类型

bool

bool CanUserReviewAppealsInSite(int userId);

Indicates that user can review appeals somewhere within the site

参数

名称

类型

描述

必需

默认值

选项

userId

int

User Id

返回类型

bool

void ContentFoundNotAbusive(Guid contentId);

Restore hidden content. Deprecated: Use ContentFoundNotAbusive(Guid, Guid) instead.

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

void ContentFoundNotAbusive(Guid contentId, Guid contentTypeId);

Restore hidden content

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

contentTypeId

Guid

Content Type Id

void ContentSuspectedAbusive(Guid contentId, Guid contentTypeId);

Hide content

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

contentTypeId

Guid

Content Type Id

void ContentSuspectedAbusive(Guid contentId);

Hide content. Deprecated: Use ContentSuspectedAbusive(Guid, Guid) instead.

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

IEnumerable<int> GetReviewBoardUserIds(Guid contentId, Guid contentTypeId);

Retrieves a list of users on the review board for a specific content item.

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

contentTypeId

Guid

Content Type Id

返回类型

IEnumerable<int>

bool IsAbusive(Guid contentId, Guid contentTypeId);

Indicates that content is abusive

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

contentTypeId

Guid

Content Type ID

返回类型

bool