mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 07:35:55 +03:00
Exposed the full result of the Vote method
This commit is contained in:
parent
8b231bf4d6
commit
2f63117c32
@ -284,10 +284,10 @@ public async Task<bool> RemoveFavorite()
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allows the user to rate a workshop item up or down.
|
/// Allows the user to rate a workshop item up or down.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public async Task<bool> Vote( bool up )
|
public async Task<Result?> Vote( bool up )
|
||||||
{
|
{
|
||||||
var r = await SteamUGC.Internal.SetUserItemVote( Id, up );
|
var r = await SteamUGC.Internal.SetUserItemVote( Id, up );
|
||||||
return r?.Result == Result.OK;
|
return r?.Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user