From 4599542576c22b60cd7f5bfacd880093524d3dc1 Mon Sep 17 00:00:00 2001 From: pvgritsenko-ansible <165666478+pvgritsenko-ansible@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:20:59 +0300 Subject: [PATCH] Sms.GetSmsSessionDetailsAsync issue (#341) * Sms.GetSmsSessionDetailsAsync datetime arguments fix * SmsAttachmentType.Jpg --------- Co-authored-by: P. Gritsenko --- Source/ZoomNet/Models/SmsAttachmentType.cs | 2 +- Source/ZoomNet/Resources/Sms.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/ZoomNet/Models/SmsAttachmentType.cs b/Source/ZoomNet/Models/SmsAttachmentType.cs index d471b963..54b67154 100644 --- a/Source/ZoomNet/Models/SmsAttachmentType.cs +++ b/Source/ZoomNet/Models/SmsAttachmentType.cs @@ -28,7 +28,7 @@ public enum SmsAttachmentType /// /// Jpg. /// - [EnumMember(Value = "JPG")] + [EnumMember(Value = "JPG/JPEG")] Jpg, /// diff --git a/Source/ZoomNet/Resources/Sms.cs b/Source/ZoomNet/Resources/Sms.cs index 85c4ddbe..d3600ed8 100644 --- a/Source/ZoomNet/Resources/Sms.cs +++ b/Source/ZoomNet/Resources/Sms.cs @@ -32,8 +32,8 @@ public Task> GetSmsSessionDetailsAsync( return _client .GetAsync($"phone/sms/sessions/{sessionId}") .WithArgument("sort", orderAscending.HasValue ? orderAscending.Value ? 1 : 2 : null) - .WithArgument("from", from?.ToZoomFormat(dateOnly: false)) - .WithArgument("to", to?.ToZoomFormat(dateOnly: false)) + .WithArgument("from", from?.ToZoomFormat(timeZone: TimeZones.UTC, dateOnly: false)) + .WithArgument("to", to?.ToZoomFormat(timeZone: TimeZones.UTC, dateOnly: false)) .WithArgument("page_size", recordsPerPage) .WithArgument("next_page_token", pagingToken) .WithCancellationToken(cancellationToken)