From 28757a08092d98d43424555730fb62fe12169b0f Mon Sep 17 00:00:00 2001 From: jeffkaffen Date: Fri, 22 Sep 2023 11:41:30 -0700 Subject: [PATCH] Update UsersQueryBuilder.cs Adding Statuses query parameter to UsersQueryBuilder.cs to support querying on Status for CustomRequest.GetAsync() https://github.com/wp-net/WordPressPCL/issues/347 --- WordPressPCL/Utility/UsersQueryBuilder.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/WordPressPCL/Utility/UsersQueryBuilder.cs b/WordPressPCL/Utility/UsersQueryBuilder.cs index fd517d0..ebd2adc 100644 --- a/WordPressPCL/Utility/UsersQueryBuilder.cs +++ b/WordPressPCL/Utility/UsersQueryBuilder.cs @@ -60,6 +60,15 @@ public class UsersQueryBuilder : QueryBuilder [QueryText("slug")] public List Slugs { get; set; } + // + // Summary: + // Limit result set to posts assigned one or more statuses. + // + // Remarks: + // Default: publish + [QueryText("status")] + public List Statuses { get; set; } + /// /// Limit result set to users matching at least one specific role provided. Accepts csv list or single role. ///