9 public readonly
string Name;
10 public readonly AccountId
Id;
17 public Option<Sprite>
Avatar {
get;
set; }
28 FriendStatus.Offline =>
"",
30 => TextManager.GetWithVariable(
"FriendPlayingOnServer",
"[servername]",
ServerName),
31 _ => TextManager.Get($
"Friend{CurrentStatus}")
34 public FriendInfo(
string name, AccountId
id, FriendStatus status,
string serverName, Option<ConnectCommand> connectCommand, FriendProvider provider)
47 if (
Avatar.IsSome()) {
return; }
49 if (inheritableAvatar.IsSome())
51 Avatar = inheritableAvatar;
60 if (!t.TryGetResult(out Option<Sprite> spr)) { return; }
67 if (Avatar.TryUnwrap(out var avatar))
FriendInfo(string name, AccountId id, FriendStatus status, string serverName, Option< ConnectCommand > connectCommand, FriendProvider provider)
readonly FriendProvider Provider
readonly FriendStatus CurrentStatus
readonly Option< ConnectCommand > ConnectCommand
readonly string ServerName
LocalizedString StatusText
void RetrieveOrInheritAvatar(Option< Sprite > inheritableAvatar, int size)