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.
- Listed in Menus, UI and platforms
- Inherits or implements
UINotification, IEquatable<FriendRequestNotification> - Derived types
FriendRequestNotification
Constructors
| Member | What 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
| Member | What it is |
|---|---|
private readonly IAnalyticsService analyticsService | Service the accept and decline events are sent to. |
private readonly FriendshipInfo friendRequest | The friend request this entry shows. |
Properties
Methods
| Member | What 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. |