Skip to main content

PlayerReportNotification

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

Inbox notification for one player report. Accept bans the reported user; decline ignores the report.

Constructors​

MemberWhat it is
PlayerReportNotification(IAnalyticsService analyticsService, PlayerReportAdmin report, PlayerReportInboxInfoPanel 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 PlayerReportAdmin reportThe admin view of the player report this notification shows.
private readonly PlayerReportInboxInfoPanel reportInfoPanelInbox panel that shows the report's details while the notification is selected.

Properties​

MemberWhat it is
override bool IsUsingAccept { get; }True unless the report has already been acted on.
override bool IsUsingDecline { get; }True while the report is awaiting action.
override DateTime Time { get; }When the report was made.

Methods​

MemberWhat it is
override Task<bool> Accept()Bans the reported user after confirmation.
override Task Decline()Marks the report as ignored.
override bool Equals(object obj)Two notifications are equal when they are for the same report ID.
bool Equals(PlayerReportNotification other)Two notifications are equal when they are for the same report ID.
override int GetHashCode()Hash from the report and info panel.
override void OnSelected(bool isSelected)Shows the report in the info panel when selected and hides it when not.