From 4e829084656ace739ed705d5b5ca38a8b38dbeee Mon Sep 17 00:00:00 2001 From: Jericho Date: Thu, 14 Jan 2021 12:20:08 -0500 Subject: [PATCH 1/3] Fix xml comments --- Source/ZoomNet/Resources/IUsers.cs | 4 ++-- Source/ZoomNet/Resources/Users.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/ZoomNet/Resources/IUsers.cs b/Source/ZoomNet/Resources/IUsers.cs index 87744869..edfdb7d4 100644 --- a/Source/ZoomNet/Resources/IUsers.cs +++ b/Source/ZoomNet/Resources/IUsers.cs @@ -10,7 +10,7 @@ namespace ZoomNet.Resources /// Allows you to manage users. /// /// - /// See Zoom documentation for more information. + /// See Zoom documentation for more information. /// public interface IUsers { @@ -23,7 +23,7 @@ public interface IUsers /// The current page number of returned records. /// The cancellation token. /// - /// An array of users. + /// An array of users. /// Task> GetAllAsync(UserStatus status = UserStatus.Active, string roleId = null, int recordsPerPage = 30, int page = 1, CancellationToken cancellationToken = default); diff --git a/Source/ZoomNet/Resources/Users.cs b/Source/ZoomNet/Resources/Users.cs index bed38b73..f9df71f4 100644 --- a/Source/ZoomNet/Resources/Users.cs +++ b/Source/ZoomNet/Resources/Users.cs @@ -13,11 +13,11 @@ namespace ZoomNet.Resources { /// - /// Allows you to manage meetings. + /// Allows you to manage users. /// /// /// - /// See Zoom documentation for more information. + /// See Zoom documentation for more information. /// public class Users : IUsers { @@ -41,7 +41,7 @@ internal Users(Pathoschild.Http.Client.IClient client) /// The current page number of returned records. /// The cancellation token. /// - /// An array of users. + /// An array of users. /// public Task> GetAllAsync(UserStatus status = UserStatus.Active, string roleId = null, int recordsPerPage = 30, int page = 1, CancellationToken cancellationToken = default) { From 9b394d0ceebbaaa4c9a39bb5802483d3e4adf663 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 14 Jan 2021 10:28:21 -0700 Subject: [PATCH 2/3] Updated CreateScheduledWebinarAsync to use ScheduledWebinar as response type Webinar is an abstract class. This method should return a ScheduledWebinar. --- Source/ZoomNet/Resources/Webinars.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ZoomNet/Resources/Webinars.cs b/Source/ZoomNet/Resources/Webinars.cs index 0bd8d784..2a8f4e56 100644 --- a/Source/ZoomNet/Resources/Webinars.cs +++ b/Source/ZoomNet/Resources/Webinars.cs @@ -98,7 +98,7 @@ public Task> GetAllAsync(string userId, int /// The new webinar. /// /// Thrown when an exception occured while creating the webinar. - public Task CreateScheduledWebinarAsync(string userId, string topic, string agenda, DateTime start, int duration, string password = null, WebinarSettings settings = null, IDictionary trackingFields = null, CancellationToken cancellationToken = default) + public Task CreateScheduledWebinarAsync(string userId, string topic, string agenda, DateTime start, int duration, string password = null, WebinarSettings settings = null, IDictionary trackingFields = null, CancellationToken cancellationToken = default) { var data = new JObject() { @@ -117,7 +117,7 @@ public Task CreateScheduledWebinarAsync(string userId, string topic, st .PostAsync($"users/{userId}/webinars") .WithJsonBody(data) .WithCancellationToken(cancellationToken) - .AsObject(); + .AsObject(); } /// From 0b8b7d54d19ee806bcbc623f94e0c4652b2a3a88 Mon Sep 17 00:00:00 2001 From: Jericho Date: Thu, 14 Jan 2021 13:02:16 -0500 Subject: [PATCH 3/3] (GH-75) Modify the IWebinars interface to match recent change to the Webinars resource --- Source/ZoomNet/Resources/IWebinars.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ZoomNet/Resources/IWebinars.cs b/Source/ZoomNet/Resources/IWebinars.cs index 95d15593..7d1d5282 100644 --- a/Source/ZoomNet/Resources/IWebinars.cs +++ b/Source/ZoomNet/Resources/IWebinars.cs @@ -55,7 +55,7 @@ public interface IWebinars /// The new webinar. /// /// Thrown when an exception occured while creating the webinar. - Task CreateScheduledWebinarAsync(string userId, string topic, string agenda, DateTime start, int duration, string password = null, WebinarSettings settings = null, IDictionary trackingFields = null, CancellationToken cancellationToken = default); + Task CreateScheduledWebinarAsync(string userId, string topic, string agenda, DateTime start, int duration, string password = null, WebinarSettings settings = null, IDictionary trackingFields = null, CancellationToken cancellationToken = default); /// /// Creates a recurring webinar for a user.