Added Friend.RequestInfoAsync

This commit is contained in:
Garry Newman 2019-05-01 13:21:52 +01:00
parent ab535d367d
commit fb97dbee2e

View File

@ -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>