PlayerReportSummary
A class in Alta.Api.Client, Alta.Api.Client.HighLevel.
All admin reports against one player on one server, grouped by ServerReportCollection. Built by the player reports client from report data fetched from the web API.
- Listed in Alta.Api.Client
Constructors
| Member | What it is |
|---|---|
PlayerReportSummary(PlayerReportInfo info) | Creates a PlayerReportSummary from info. |
Fields
| Member | What it is |
|---|---|
Dictionary<ReportType, int> TypeCounts | How many reports there are of each ReportType. |
1 private and internal field
| Member | What it is |
|---|---|
private readonly SortedList<DateTime, PlayerReportAdmin> reports | The reports, keyed by creation time and sorted newest first. |
Properties
| Member | What it is |
|---|---|
PlayerReportAdmin Latest { get; } | The most recently created report, or null if there are none. |
PlayerReportAdmin LatestActedOn { get; } | The newest report whose status is ActedOn, or null if none has been acted on. |
UserInfo ReportedPlayer { get; } | The player the reports are about, taken from the first report. |
HashSet<UserInfo> Reporters { get; } | The distinct users who filed these reports. |
IEnumerable<PlayerReportAdmin> Reports { get; } | All reports, newest first by creation time. |
GameServerInfoMinimal Server { get; } | The server the reports were filed on, taken from the first report. |
TimeSpan TimeRange { get; } | Time between the oldest and newest report; zero when there are fewer than two. |
int TotalCount { get; } | Number of reports in the summary. |
Methods
1 private and internal method
| Member | What it is |
|---|---|
internal void Add(PlayerReportAdmin report) | Adds a report to the newest-first list, records its reporter and bumps the count for its report type. |
Used in
Members of other types that take, return or hold a PlayerReportSummary:
IPlayerReportsClient.ViewAllReportsAsSummary, PlayerReportsClient.ViewAllReportsAsSummary, ServerReportCollection.Reports, ServerReportCollection.reportsPerPlayer, PlayerReportSummaryNotification.PlayerReportSummaryNotification, PlayerReportSummaryNotification.report, PlayerReportSummaryPanel.SetupForReport.