Skip to main content

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​

MemberWhat 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
MemberWhat it is
private readonly IAnalyticsService analyticsServiceAnalytics service used to send a ban event when a ban from the report succeeds.

Properties​

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

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