SubmitReport
method in Coherence.Cloud.ReportsService
Methods
public void SubmitReport(PlayerAccountId target, ReportCategory category, Action<RequestResponse<ReportId>> onRequestFinished, string notes = null, CancellationToken cancellationToken = default)
Submits a report against target player account for a policy violation.
Parameters
| Type | Name | Description |
|---|---|---|
| PlayerAccountId | target | The id of the player account being reported. |
| ReportCategory | category | Category of the reported behavior. |
| Action<RequestResponse<ReportId>> | onRequestFinished | Callback invoked with the resulting ReportId on success, or an System.Exception on failure. |
| string | notes | Optional player-supplied narrative. coherence Cloud currently accepts up to 500 Unicode code points, and fails longer notes with Coherence.Runtime.ErrorCode.ReportsInvalidNotes. |
| CancellationToken | cancellationToken | Optional cancellation token. |
Remarks
coherence Cloud limits how many reports a player can submit, currently 20 in any 24 hours, and how often they can report the same player account, currently once an hour.