- 命名空间: Limyee.Extensibility.Api.Version1
- 程序集: Limyee.Api.dll
定义
interface IAbuseReports { Guid DataTypeId { get; } IAbuseReportEvents Events { get; } bool CanBeMarkedAsAbusive(Guid contentTypeId); AbuseReport Create(Guid contentId, Guid contentTypeId, AbuseReportCreateOptions options = null); AbuseReport Get(Guid id); PagedList<AbuseReport> List(AbuseReportListOptions options); AbuseReport Update(Guid abuseReportId, AbuseReportUpdateOptions options = null); }
属性
名称 |
类型 |
描述 |
默认值 |
选项 |
DataTypeId |
Guid |
Abuse Reports data type identifier |
||
Events |
IAbuseReportEvents |
AbuseReports events |
方法
bool CanBeMarkedAsAbusive(Guid contentTypeId);
Determine if a ContentTypeId supports marking as abusive
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
contentTypeId |
Guid |
Content Type ID |
是 |
返回类型
bool
AbuseReport Create(Guid contentId, Guid contentTypeId, AbuseReportCreateOptions options = null);
Create abuse report
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
contentId |
Guid |
Content Id |
是 |
||
contentTypeId |
Guid |
Content Type ID |
是 |
||
options |
AbuseReportCreateOptions |
Options include: AbuseReasonId |
否 |
返回类型
AbuseReport
AbuseReport Get(Guid id);
Get abuse report
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
id |
Guid |
The Id of the AbuseReport to get |
是 |
返回类型
AbuseReport
PagedList<AbuseReport> List(AbuseReportListOptions options);
List Abuse Reports
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
options |
AbuseReportListOptions |
Options include: AuthorUserId, ReportingUserId, AbusiveContentId, StartDate, EndDate, SortBy (AbuseReportId, AuthorId, CreatedUtcDate), SortOrder (Asc, Desc), AbuseState(NotReported, Reported, AbusiveAppealed, ConfirmedAbusive, NotAbusive, Invalid, AppealRespondedByAuthor), PageSize, and PageIndex |
是 |
返回类型
PagedList<AbuseReport>
AbuseReport Update(Guid abuseReportId, AbuseReportUpdateOptions options = null);
Update abuse report
参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
abuseReportId |
Guid |
Id of the abuse report |
是 |
||
options |
AbuseReportUpdateOptions |
Options include: AbuseReasonId |
否 |
返回类型
AbuseReport