mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 07:35:55 +03:00
Added Friend.RequestInfoAsync
This commit is contained in:
parent
ab535d367d
commit
fb97dbee2e
@ -47,6 +47,15 @@ public override string ToString()
|
||||
/// </summary>
|
||||
public bool IsOnline => State != FriendState.Offline;
|
||||
|
||||
/// <summary>
|
||||
/// Sometimes we don't know the user's name. This will wait until we have
|
||||
/// downloaded the information on this user.
|
||||
/// </summary>
|
||||
public async Task RequestInfoAsync( int timeout = 5000 )
|
||||
{
|
||||
await SteamFriends.CacheUserInformationAsync( Id, true, timeout );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if this friend is marked as away
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user