Skip to main content

FriendRequestNotification

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

A notification list entry for an incoming friend request, with accept and decline that call the social service.

Constructors​

MemberWhat it is
FriendRequestNotification(FriendshipInfo friendRequest, IAnalyticsService analyticsService, Panel panel)Built by the game's dependency injection (VContainer), which passes the services in.

Fields​

2 private and internal fields
MemberWhat it is
private readonly IAnalyticsService analyticsServiceService the accept and decline events are sent to.
private readonly FriendshipInfo friendRequestThe friend request this entry shows.

Properties​

MemberWhat it is
override string Message { get; }Text saying who wants to be your friend.
override string ShortMessage { get; }The requester's username.
override DateTime Time { get; }When the request was made.

Methods​

MemberWhat it is
override async Task<bool> Accept()Accepts the friend request and sends an analytics event.
override async Task Decline()Removes the friendship (declines the request) and sends an analytics event.
override bool Equals(object obj)Equal if the requests have the same ID (the typed overload also compares the analytics service).
bool Equals(FriendRequestNotification other)Equal if the requests have the same ID (the typed overload also compares the analytics service).
override int GetHashCode()Hash of the request and the analytics service.