Skip to main content

PlayerReportsClient

A class in Alta.Api.Client, Alta.Api.Client.HighLevel.

Online client for reporting players and reading reports. Reached as ApiAccess.ApiClient.PlayerReports; calls Alta's web API, which no longer answers.

Constructors​

1 private and internal constructor
MemberWhat it is
internal PlayerReportsClient(IHighLevelApiClientManager clientManager)Creates a PlayerReportsClient from clientManager.

Methods​

MemberWhat it is
Task<PlayerReportInfo> ReportPlayer(int userId, ReportType type, int serverId)Files a report of the given type against a user on a server.
async Task<IEnumerable<PlayerReportAdmin>> ViewAllReports(ReportStatus? statusFilter = null, int? serverFilter = null)Gets all reports, optionally filtered by status or server, as admin report objects.
async Task<IEnumerable<PlayerReportSummary>> ViewAllReportsAsSummary(ReportStatus? statusFilter = null, int? serverFilter = null)Gets reports grouped per server and per reported player, newest first.