Skip to main content

PlayerReportSummaryNotification

A class in Root.Township, Alta.Meta.UI.ServerManagement.

Notification summarising the reports against one user, shown by the latest report. Accept bans the user; there is no decline.

Constructors​

MemberWhat it is
PlayerReportSummaryNotification(IAnalyticsService analyticsService, PlayerReportSummary report, PlayerReportSummaryPanel reportInfoPanel, Panel panel)Built by the game's dependency injection (VContainer), which passes the services in.

Fields​

2 private and internal fields
MemberWhat it is
private readonly PlayerReportSummary reportThe report summary (all reports on one player) this notification shows.
private readonly PlayerReportSummaryPanel reportInfoPanelPanel that shows the summary's details while the notification is selected.

Properties​

MemberWhat it is
override bool IsUsingAccept { get; }True when none of the reports has been acted on.
override bool IsUsingDecline { get; }Always false.
override string ShortMessage { get; }The reported user's name.
override DateTime Time { get; }When the latest report was made.

Methods​

MemberWhat it is
override Task<bool> Accept()Bans the reported user based on the latest report.
override bool Equals(object obj)Equal when the latest report IDs match.
bool Equals(PlayerReportSummaryNotification other)Equal when the latest report IDs match.
override int GetHashCode()Hash from the summary and panel.
override void OnSelected(bool isSelected)Shows the summary panel when selected and hides it when not.