Exposed the full result of the Vote method

This commit is contained in:
Alex Mein 2019-10-28 15:40:30 +00:00
parent 8b231bf4d6
commit 2f63117c32

View File

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