PlayerCommunityAnalytics
A static class in Root.Township, the global namespace.
Client helpers that post social analytics events (friend requests, reports, bans, unbans) to Alta's API for the logged-in user.
- Listed in Global namespace: P
- Attributes
Extension
Fields
21 private and internal fields
| Member | What it is |
|---|---|
private const string BanCreatedInMainMenuPageKey | Event data key for the main menu page a ban came from. |
private const string BanCreatedInSocialTabletRoleKey | Event data key for whether a social tablet ban came from an owner or moderator. |
private const string BanCreatedOriginKey | Event data key for where a ban came from. |
private const string BanPlayerEvent | Event name for a ban. |
private static readonly Dictionary<string, object> EventData | Shared event data filled by each helper before posting. |
private const string FriendRequestTokenFriendlyText | Display text for the friend request token origin. |
private const string FriendshipStatusActionOriginKey | Event data key for where a friendship action came from. |
private static Logger logger | NLog logger for this class. |
private const string MainMenuFriendlyText | Display text for the main menu origin. |
private const string MutualFriendshipCreationEvent | Event name for a new mutual friendship. |
private const string MutualFriendshipOriginKey | Event data key for how a mutual friendship was made. |
private const string RemoveFriendEvent | Event name for removing a friend. |
private const string RequestFriendEvent | Event name for a friend request. |
private const string RespondFriendRequestEvent | Event name for answering a friend request. |
private static readonly GroupPermissions[] serverOwnerPermissionData | Permission checked to decide whether a banner is the server owner. |
private const string SocialTabletFriendlyText | Display text for the social tablet origin. |
private const string UnBanPlayerEvent | Event name for an unban. |
private const string UnBanPlayerOriginKey | Event data key for where an unban came from. |
private static int userId | Backing field for UserId, -1 when not cached. |
private const string UserReportPlayerEvent | Event name for a player report. |
private const string UserReportPlayerOriginKey | Event data key for where a report came from. |
Properties
1 private and internal property
Methods
| Member | What it is |
|---|---|
static void BanPlayerInMainMenu(SocialAnalyticsBanMenuPanelOrigin mainSocialAnalyticsBanMenuPageUsedFor) | Posts a ban event from the main menu, with the page it was made on. |
static async void BanPlayerInSocialTablet(int serverId) | Posts a ban event from the social tablet, with the player's role (owner or moderator) on the server. |
static string FriendlyText(SocialAnalyticsEventOrigin reportEventOriginType) | Turns a social event origin into its display text. |
static void FriendRequestedFrom(SocialAnalyticsEventOrigin eventOrigin) | Posts a friend request event with its origin. |
static void FriendRequestToken() | Posts a mutual friendship event made through a friend request token. |
static void ReportPlayer(SocialAnalyticsEventOrigin eventOrigin) | Posts a player report event with its origin. |
static void RespondFriendRequestFrom(SocialAnalyticsEventOrigin eventOrigin) | Posts a friend request response event with its origin. |
static void UnBanPlayerSocialTablet() | Posts an unban event from the social tablet. |
static void UnFriend(SocialAnalyticsEventOrigin eventOrigin) | Posts a remove friend event with its origin. |