From 3354ad3b377217a2821693e1423d42b806950fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:28:44 +0100 Subject: [PATCH] Fix deserialization when creating a new call breaking due to missing enum value --- Assets/Graphy - Ultimate Stats Monitor.meta | 8 ++++++++ .../Graphy_CustomizationScene.unitypackage.meta | 7 +++++++ .../Core/InternalDTO/Models/OwnCapabilityInternalEnum.cs | 6 ++++++ Packages/StreamVideo/Runtime/Core/Models/OwnCapability.cs | 6 ++++++ 4 files changed, 27 insertions(+) create mode 100644 Assets/Graphy - Ultimate Stats Monitor.meta create mode 100644 Assets/Graphy - Ultimate Stats Monitor/Graphy_CustomizationScene.unitypackage.meta diff --git a/Assets/Graphy - Ultimate Stats Monitor.meta b/Assets/Graphy - Ultimate Stats Monitor.meta new file mode 100644 index 0000000..7902c52 --- /dev/null +++ b/Assets/Graphy - Ultimate Stats Monitor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2b771290a9ed1614fbc5a745ef7ba669 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Graphy - Ultimate Stats Monitor/Graphy_CustomizationScene.unitypackage.meta b/Assets/Graphy - Ultimate Stats Monitor/Graphy_CustomizationScene.unitypackage.meta new file mode 100644 index 0000000..8b12634 --- /dev/null +++ b/Assets/Graphy - Ultimate Stats Monitor/Graphy_CustomizationScene.unitypackage.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9df6cd2f9439dd04fb0d7a5aeb12e189 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/StreamVideo/Runtime/Core/InternalDTO/Models/OwnCapabilityInternalEnum.cs b/Packages/StreamVideo/Runtime/Core/InternalDTO/Models/OwnCapabilityInternalEnum.cs index c0ee23b..98689df 100644 --- a/Packages/StreamVideo/Runtime/Core/InternalDTO/Models/OwnCapabilityInternalEnum.cs +++ b/Packages/StreamVideo/Runtime/Core/InternalDTO/Models/OwnCapabilityInternalEnum.cs @@ -99,6 +99,12 @@ internal enum OwnCapabilityInternalEnum [System.Runtime.Serialization.EnumMember(Value = @"update-call-settings")] UpdateCallSettings = 25, + + [System.Runtime.Serialization.EnumMember(Value = @"start-closed-captions-call")] + StartClosedCaptionsCall = 26, + + [System.Runtime.Serialization.EnumMember(Value = @"stop-closed-captions-call")] + StopClosedCaptionsCall = 27, } diff --git a/Packages/StreamVideo/Runtime/Core/Models/OwnCapability.cs b/Packages/StreamVideo/Runtime/Core/Models/OwnCapability.cs index e1ee085..8126a36 100644 --- a/Packages/StreamVideo/Runtime/Core/Models/OwnCapability.cs +++ b/Packages/StreamVideo/Runtime/Core/Models/OwnCapability.cs @@ -31,6 +31,8 @@ public enum OwnCapability UpdateCallSettings = 23, EnableNoiseCancellation = 24, ChangeMaxDuration = 25, + StartClosedCaptionsCall = 26, + StopClosedCaptionsCall = 27, } internal static class OwnCapabilityExt @@ -65,6 +67,8 @@ public static OwnCapabilityInternalEnum ToInternalEnum(this OwnCapability ownCap case OwnCapability.UpdateCallSettings: return OwnCapabilityInternalEnum.UpdateCallSettings; case OwnCapability.EnableNoiseCancellation: return OwnCapabilityInternalEnum.EnableNoiseCancellation; case OwnCapability.ChangeMaxDuration: return OwnCapabilityInternalEnum.ChangeMaxDuration; + case OwnCapability.StartClosedCaptionsCall: return OwnCapabilityInternalEnum.StartClosedCaptionsCall; + case OwnCapability.StopClosedCaptionsCall: return OwnCapabilityInternalEnum.StopClosedCaptionsCall; default: throw new ArgumentOutOfRangeException(nameof(ownCapability), ownCapability, null); } } @@ -99,6 +103,8 @@ public static OwnCapability ToPublicEnum(this OwnCapabilityInternalEnum ownCapab case OwnCapabilityInternalEnum.UpdateCallSettings: return OwnCapability.UpdateCallSettings; case OwnCapabilityInternalEnum.EnableNoiseCancellation: return OwnCapability.EnableNoiseCancellation; case OwnCapabilityInternalEnum.ChangeMaxDuration: return OwnCapability.ChangeMaxDuration; + case OwnCapabilityInternalEnum.StartClosedCaptionsCall: return OwnCapability.StartClosedCaptionsCall; + case OwnCapabilityInternalEnum.StopClosedCaptionsCall: return OwnCapability.StopClosedCaptionsCall; default: throw new ArgumentOutOfRangeException(nameof(ownCapability), ownCapability, null); } }