From 10415a97319dadbd4d5b42108f2c30c8b6c567b1 Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Tue, 12 Sep 2023 10:22:56 -0400 Subject: [PATCH] Add user votes response class (#87) * Update Responses.cs * comments --- src/GregClient/Responses/Responses.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/GregClient/Responses/Responses.cs b/src/GregClient/Responses/Responses.cs index bd9e0b8..c30b7f6 100644 --- a/src/GregClient/Responses/Responses.cs +++ b/src/GregClient/Responses/Responses.cs @@ -217,4 +217,19 @@ public class UserPackages public List maintains { get; set; } } + /// + /// Used to handle response from /user/votes route + /// to fetch all packages the current user has upvoted + /// + public class UserVotes + { + public string username { get; set; } + + public string _id { get; set; } + + /// + /// List of package ids that the current user has upvoted + /// + public List has_upvoted { get; set; } + } } \ No newline at end of file