mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
GetPlayedWith test RequestInfo on each user first
This commit is contained in:
parent
cf0e3417de
commit
96eeea1662
@ -35,10 +35,12 @@ public void GetBlocked()
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void GetPlayedWith()
|
public async Task GetPlayedWith()
|
||||||
{
|
{
|
||||||
foreach ( var friend in SteamFriends.GetPlayedWith() )
|
foreach ( var friend in SteamFriends.GetPlayedWith() )
|
||||||
{
|
{
|
||||||
|
await friend.RequestInfoAsync();
|
||||||
|
|
||||||
Console.WriteLine( $"{friend.Id.Value}: {friend.Name} (Friend:{friend.IsFriend}) (Blocked:{friend.IsBlocked})" );
|
Console.WriteLine( $"{friend.Id.Value}: {friend.Name} (Friend:{friend.IsFriend}) (Blocked:{friend.IsBlocked})" );
|
||||||
Console.WriteLine( $" {string.Join( ", ", friend.NameHistory )}" );
|
Console.WriteLine( $" {string.Join( ", ", friend.NameHistory )}" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user