文章 IAbuseAppeals 类

  • 命名空间: Limyee.Extensibility.Api.Version1
  • 程序集: Limyee.Api.dll

定义

interface IAbuseAppeals
{
	Guid DataTypeId { get;  }
	IAbuseAppealEvents Events { get;  }
	AbuseAppeal AcceptAppeal(Guid appealId, string boardResponse);
	AbuseAppeal Create(Guid contentId, Guid contentTypeId);
	AbuseAppeal Get(Guid id);
	PagedList<AbuseAppeal> List(AbuseAppealListOptions options);
	AbuseAppeal RejectAppeal(Guid appealId, string boardResponse);
	AbuseAppeal RespondToAppeal(Guid appealId, string authorResponse);
}

属性

名称

类型

描述

默认值

选项

DataTypeId

Guid

Abuse Appeals data type identifier

Events

IAbuseAppealEvents

AbuseAppeals events

方法

AbuseAppeal AcceptAppeal(Guid appealId, string boardResponse);

Board accepts an appeal

参数

名称

类型

描述

必需

默认值

选项

appealId

Guid

Id of the appeal

boardResponse

string

Response of the Board

返回类型

AbuseAppeal

AbuseAppeal Create(Guid contentId, Guid contentTypeId);

参数

名称

类型

描述

必需

默认值

选项

contentId

Guid

Content Id

contentTypeId

Guid

Content Type Id

返回类型

AbuseAppeal

AbuseAppeal Get(Guid id);

Get abuse appeal

参数

名称

类型

描述

必需

默认值

选项

id

Guid

Id of the appeal

Return Type

AbuseAppeal

PagedList<AbuseAppeal> List(AbuseAppealListOptions options);

Lists abuse appeals

参数

名称

类型

描述

必需

默认值

选项

options

AbuseAppealListOptions

Options include: AppealId, AbuseId, ContentId, ContentTypeId, ContainerId, ApplicationId, ContentAuthorId, AppealState(Default, Initiated, Accepted, Rejected, Expired, AuthorResponded), SortBy(AppealId, AuthorUserId, AuthorUsername), SortOrder (Asc, Desc), PageSize and PageIndex

返回类型

PagedList<AbuseAppeal>

AbuseAppeal RejectAppeal(Guid appealId, string boardResponse);

Board rejects an appeal

参数

名称

类型

描述

必需

默认值

选项

appealId

Guid

Id of the appeal

Required

boardResponse

string

Response of the Board

Required

返回类型

AbuseAppeal

AbuseAppeal RespondToAppeal(Guid appealId, string authorResponse);

Author responds to an appeal

参数

名称

类型

描述

必需

默认值

选项

appealId

Guid

Id of the appeal

Required

authorResponse

string

Response of the Author

Required

返回类型

AbuseAppeal