Client LuaCsForBarotrauma
FriendInfo Class Reference
Inheritance diagram for FriendInfo:

Public Member Functions

 FriendInfo (string name, AccountId id, FriendStatus status, string serverName, Option< ConnectCommand > connectCommand, FriendProvider provider)
 
void RetrieveOrInheritAvatar (Option< Sprite > inheritableAvatar, int size)
 
void Dispose ()
 

Public Attributes

readonly string Name
 
readonly AccountId Id
 
readonly FriendStatus CurrentStatus
 
readonly string ServerName
 
readonly Option< ConnectCommand > ConnectCommand
 
readonly FriendProvider Provider
 

Properties

Option< Sprite > Avatar [get, set]
 
bool IsInServer [get]
 
bool IsOnline [get]
 
LocalizedString StatusText [get]
 

Detailed Description

Definition at line 7 of file FriendInfo.cs.

Constructor & Destructor Documentation

◆ FriendInfo()

FriendInfo.FriendInfo ( string  name,
AccountId  id,
FriendStatus  status,
string  serverName,
Option< ConnectCommand connectCommand,
FriendProvider  provider 
)

Definition at line 34 of file FriendInfo.cs.

Member Function Documentation

◆ Dispose()

void FriendInfo.Dispose ( )

Definition at line 65 of file FriendInfo.cs.

◆ RetrieveOrInheritAvatar()

void FriendInfo.RetrieveOrInheritAvatar ( Option< Sprite >  inheritableAvatar,
int  size 
)

Definition at line 45 of file FriendInfo.cs.

Member Data Documentation

◆ ConnectCommand

readonly Option<ConnectCommand> FriendInfo.ConnectCommand

Definition at line 14 of file FriendInfo.cs.

◆ CurrentStatus

readonly FriendStatus FriendInfo.CurrentStatus

Definition at line 12 of file FriendInfo.cs.

◆ Id

readonly AccountId FriendInfo.Id

Definition at line 10 of file FriendInfo.cs.

◆ Name

readonly string FriendInfo.Name

Definition at line 9 of file FriendInfo.cs.

◆ Provider

readonly FriendProvider FriendInfo.Provider

Definition at line 16 of file FriendInfo.cs.

◆ ServerName

readonly string FriendInfo.ServerName

Definition at line 13 of file FriendInfo.cs.

Property Documentation

◆ Avatar

Option<Sprite> FriendInfo.Avatar
getset

Definition at line 17 of file FriendInfo.cs.

◆ IsInServer

bool FriendInfo.IsInServer
get

Definition at line 19 of file FriendInfo.cs.

◆ IsOnline

bool FriendInfo.IsOnline
get

Definition at line 22 of file FriendInfo.cs.

◆ StatusText

LocalizedString FriendInfo.StatusText
get

Definition at line 25 of file FriendInfo.cs.