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.
- Listed in Menus, UI and platforms
- Inherits or implements
PlayerReportBaseNotification, IEquatable<PlayerReportNotification> - Derived types
PlayerReportNotification
Constructors
| Member | What 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
| Member | What it is |
|---|---|
private readonly PlayerReportAdmin report | The admin view of the player report this notification shows. |
private readonly PlayerReportInboxInfoPanel reportInfoPanel | Inbox panel that shows the report's details while the notification is selected. |
Properties
Methods
| Member | What 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. |