PlayerReportBaseNotification
An abstract class in Root.Township, Alta.Meta.UI.ServerManagement.
Base for main menu inbox notifications about player reports, where accepting bans the reported user from that server through the Alta API.
Constructors
| Member | What it is |
|---|
protected PlayerReportBaseNotification(IAnalyticsService analyticsService, Panel panel) | Built by the game's dependency injection (VContainer), which passes the services in. |
Fields
1 private and internal field
| Member | What it is |
|---|
private readonly IAnalyticsService analyticsService | Analytics service used to send a ban event when a ban from the report succeeds. |
Properties
| Member | What it is |
|---|
override string AcceptText { get; } | "Ban User". |
override string DeclineText { get; } | "Ok". |
override string Message { get; } | "Player Report:". |
override string ShortMessage { get; } | "Player Report". |
override bool ShowLoadingForAccept { get; } | False; the ban shows its own loading popup. |
Methods
| Member | What it is |
|---|
protected async Task<bool> BanUserFromReport(PlayerReportAdmin report, SocialAnalyticsBanMenuPanelOrigin panelOrigin) | Asks for confirmation, bans the reported user from the report's server and marks the report acted on. Returns whether it was done. |