Skip to main content

APIStatusManager

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

Client: fetches status messages from the Alta status API and shows each new one that matches the player's platform and region as a popup, once per session.

Fields​

2 private and internal fields
MemberWhat it is
private static Logger loggerNLog logger for this class.
private static readonly HashSet<int> viewedStatusesIDs of statuses already shown as popups, so each shows once.

Methods​

MemberWhat it is
static async Task<IEnumerable<Status>> GetStatus()Gets all status messages, shows a popup for each matching one not seen yet, and returns them all.
3 private and internal methods
MemberWhat it is
private static bool IsCorrectPlatform(Status status)True if the status is for this platform (Quest, Pico or PC). Unknown platforms pass.
private static bool IsCorrectRegion(Status status)True if the status region matches the current server's launch region. Passes when there is no server or the region is not known.
private static bool MatchesFilter(Status status)True if the status passes both the platform and region checks.