Skip to content

Commit

Permalink
Add user votes response class (#87)
Browse files Browse the repository at this point in the history
* Update Responses.cs

* comments
  • Loading branch information
zeusongit authored Sep 12, 2023
1 parent 02e971c commit 10415a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/GregClient/Responses/Responses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,19 @@ public class UserPackages

public List<PackageVersion> maintains { get; set; }
}
/// <summary>
/// Used to handle response from /user/votes route
/// to fetch all packages the current user has upvoted
/// </summary>
public class UserVotes
{
public string username { get; set; }

public string _id { get; set; }

/// <summary>
/// List of package ids that the current user has upvoted
/// </summary>
public List<string> has_upvoted { get; set; }
}
}

0 comments on commit 10415a9

Please sign in to comment.