diff --git a/Source/ZoomNet/Models/Meeting.cs b/Source/ZoomNet/Models/Meeting.cs index ee0be0ce..dd3dcab6 100644 --- a/Source/ZoomNet/Models/Meeting.cs +++ b/Source/ZoomNet/Models/Meeting.cs @@ -58,7 +58,7 @@ public abstract class Meeting /// The status. /// [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] - public MeetingStatus Status { get; set; } + public MeetingStatus? Status { get; set; } /// /// Gets or sets the meeting description. diff --git a/Source/ZoomNet/Resources/CloudRecordings.cs b/Source/ZoomNet/Resources/CloudRecordings.cs index c3c517cf..c50c9d48 100644 --- a/Source/ZoomNet/Resources/CloudRecordings.cs +++ b/Source/ZoomNet/Resources/CloudRecordings.cs @@ -95,54 +95,17 @@ public Task> GetRecordingsForU } /// - /// Retrieve all cloud recordings for a meeting. + /// Retrieve all cloud recordings for a meeting or webinar. /// /// The meeting Id or UUID. - /// The number of records returned within a single API call. - /// The current page number of returned records. - /// The cancellation token. - /// - /// An array of recordings. - /// - [Obsolete("Zoom is in the process of deprecating the \"page number\" and \"page count\" fields.")] - public Task> GetRecordingsAsync(string meetingId, int recordsPerPage = 30, int page = 1, CancellationToken cancellationToken = default) - { - if (recordsPerPage < 1 || recordsPerPage > 300) - { - throw new ArgumentOutOfRangeException(nameof(recordsPerPage), "Records per page must be between 1 and 300"); - } - - return _client - .GetAsync($"meetings/{meetingId}/recordings") - .WithArgument("page_size", recordsPerPage) - .WithArgument("page", page) - .WithCancellationToken(cancellationToken) - .AsPaginatedResponse("meetings"); - } - - /// - /// Retrieve all cloud recordings for a user. - /// - /// The meeting Id or UUID. - /// The number of records returned within a single API call. - /// The paging token. /// The cancellation token. - /// - /// An array of recordings. - /// - public Task> GetRecordingsAsync(string meetingId, int recordsPerPage = 30, string pagingToken = null, CancellationToken cancellationToken = default) + /// Details of recordings made for a particular meeding or webinar. + public Task GetRecordingsAsync(string meetingId, CancellationToken cancellationToken = default) { - if (recordsPerPage < 1 || recordsPerPage > 300) - { - throw new ArgumentOutOfRangeException(nameof(recordsPerPage), "Records per page must be between 1 and 300"); - } - return _client .GetAsync($"meetings/{meetingId}/recordings") - .WithArgument("page_size", recordsPerPage) - .WithArgument("next_page_token", pagingToken) .WithCancellationToken(cancellationToken) - .AsPaginatedResponseWithToken("meetings"); + .AsObject(); } /// diff --git a/Source/ZoomNet/Resources/ICloudRecordings.cs b/Source/ZoomNet/Resources/ICloudRecordings.cs index 65806007..15a0f40f 100644 --- a/Source/ZoomNet/Resources/ICloudRecordings.cs +++ b/Source/ZoomNet/Resources/ICloudRecordings.cs @@ -46,29 +46,12 @@ public interface ICloudRecordings Task> GetRecordingsForUserAsync(string userId, bool queryTrash = false, DateTime? from = null, DateTime? to = null, int recordsPerPage = 30, string pagingToken = null, CancellationToken cancellationToken = default); /// - /// Retrieve all cloud recordings for a meeting. + /// Retrieve all cloud recordings for a meeting or webinar. /// /// The meeting Id or UUID. - /// The number of records returned within a single API call. - /// The current page number of returned records. - /// The cancellation token. - /// - /// An array of recordings. - /// - [Obsolete("Zoom is in the process of deprecating the \"page number\" and \"page count\" fields.")] - Task> GetRecordingsAsync(string meetingId, int recordsPerPage = 30, int page = 1, CancellationToken cancellationToken = default); - - /// - /// Retrieve all cloud recordings for a meeting. - /// - /// The meeting Id or UUID. - /// The number of records returned within a single API call. - /// The paging token. /// The cancellation token. - /// - /// An array of recordings. - /// - Task> GetRecordingsAsync(string meetingId, int recordsPerPage = 30, string pagingToken = null, CancellationToken cancellationToken = default); + /// Details of recordings made for a particular meeding or webinar. + Task GetRecordingsAsync(string meetingId, CancellationToken cancellationToken = default); /// /// Move recording files for a meeting to trash. diff --git a/build.cake b/build.cake index 764520e5..660c1582 100644 --- a/build.cake +++ b/build.cake @@ -1,8 +1,8 @@ // Install tools. -#tool nuget:?package=GitVersion.CommandLine&version=5.6.0 +#tool nuget:?package=GitVersion.CommandLine&version=5.6.6 #tool nuget:?package=GitReleaseManager&version=0.11.0 #tool nuget:?package=OpenCover&version=4.7.922 -#tool nuget:?package=ReportGenerator&version=4.8.4 +#tool nuget:?package=ReportGenerator&version=4.8.5 #tool nuget:?package=coveralls.io&version=1.4.2 #tool nuget:?package=xunit.runner.console&version=2.4.1 diff --git a/build.ps1 b/build.ps1 index 0ff582b5..1035e88e 100644 --- a/build.ps1 +++ b/build.ps1 @@ -94,6 +94,11 @@ function MD5HashFile([string] $filePath) { $file.Dispose() } + + if ($md5 -ne $null) + { + $md5.Dispose() + } } }