Skip to main content

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.

Constructors​

MemberWhat it is
PlayerReportSummary(PlayerReportInfo info)Creates a PlayerReportSummary from info.

Fields​

MemberWhat it is
Dictionary<ReportType, int> TypeCountsHow many reports there are of each ReportType.
1 private and internal field
MemberWhat it is
private readonly SortedList<DateTime, PlayerReportAdmin> reportsThe reports, keyed by creation time and sorted newest first.

Properties​

MemberWhat 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
MemberWhat 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: