This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IAbuseReports>()
and is defined in Telligent.Evolution.Platform.dll
Events
Events.AfterCreate
Handler
void AbuseReportAfterCreateEventHandler(AbuseReportAfterCreateEventArgs e);
Events.AfterDelete
Handler
void AbuseReportAfterDeleteEventHandler(AbuseReportAfterDeleteEventArgs e);
Events.AfterUpdate
Handler
void AbuseReportAfterUpdateEventHandler(AbuseReportAfterUpdateEventArgs e);
Events.BeforeCreate
Handler
void AbuseReportBeforeCreateEventHandler(AbuseReportBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void AbuseReportBeforeDeleteEventHandler(AbuseReportBeforeDeleteEventArgs e);
Events.BeforeUpdate
Handler
void AbuseReportBeforeUpdateEventHandler(AbuseReportBeforeUpdateEventArgs e);
Methods
bool CanBeMarkedAsAbusive(Guid contentTypeId);
Determine if a ContentTypeId supports marking as abusive
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentTypeId | Guid | Content Type ID | Required |
Return Type
bool
AbuseReport Create(Guid contentId, Guid contentTypeId, AbuseReportCreateOptions options = null);
Create abuse report
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type ID | Required | ||
options | AbuseReportCreateOptions | Options include: AbuseReasonId | Optional |
Return Type
AbuseReport Get(Guid id);
Get abuse report
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | Guid | The Id of the AbuseReport to get | Required |
Return Type
PagedList<AbuseReport> List(AbuseReportListOptions options);
List Abuse Reports
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
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 | Required |
Return Type
AbuseReport Update(Guid abuseReportId, AbuseReportUpdateOptions options = null);
Update abuse report
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
abuseReportId | Guid | Id of the abuse report | Required | ||
options | AbuseReportUpdateOptions | Options include: AbuseReasonId | Optional |