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 |
Determine if a ContentTypeId supports marking as abusive
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
contentTypeId |
Guid |
Content Type ID |
是 |
bool
Create abuse report
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
contentId |
Guid |
Content Id |
是 |
||
|
contentTypeId |
Guid |
Content Type ID |
是 |
||
|
options |
AbuseReportCreateOptions |
Options include: AbuseReasonId |
否 |
AbuseReport
Get abuse report
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
id |
Guid |
The Id of the AbuseReport to get |
是 |
AbuseReport
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>
Update abuse report
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
abuseReportId |
Guid |
Id of the abuse report |
是 |
||
|
options |
AbuseReportUpdateOptions |
Options include: AbuseReasonId |
否 |
AbuseReport