Skip to main content

GroupInviteNotification

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

A notification list entry for an invite to join a group (server), with accept and reject.

Constructors​

MemberWhat it is
GroupInviteNotification(IncomingGroupInvite groupInvite, Panel panel)Creates a GroupInviteNotification from groupInvite and panel.

Fields​

1 private and internal field
MemberWhat it is
private readonly IncomingGroupInvite groupInviteThe invite this entry shows.

Properties​

MemberWhat it is
override string Message { get; }Text saying which group you were invited into.
override string ShortMessage { get; }The group's name.
override DateTime Time { get; }When the invite was sent.

Methods​

MemberWhat it is
override async Task<bool> Accept()Accepts the invite. Returns false and logs the error if it fails.
override Task Decline()Rejects the invite.
override bool Equals(object obj)Equal if the invites are for the same group ID (the typed overload compares the invite objects).
bool Equals(GroupInviteNotification other)Equal if the invites are for the same group ID (the typed overload compares the invite objects).
override int GetHashCode()Hash of the invite object.