Skip to content

Commit a9095ef

Browse files
authored
Merge pull request #118 from GetStream/PBE-6341-Fix-deserialization-error.-Missing-start-closed-captions-call
Fix deserialization when creating a new call breaking due to missing enum value
2 parents 1a5059b + 3354ad3 commit a9095ef

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

Assets/Graphy - Ultimate Stats Monitor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Graphy - Ultimate Stats Monitor/Graphy_CustomizationScene.unitypackage.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Packages/StreamVideo/Runtime/Core/InternalDTO/Models/OwnCapabilityInternalEnum.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ internal enum OwnCapabilityInternalEnum
9999

100100
[System.Runtime.Serialization.EnumMember(Value = @"update-call-settings")]
101101
UpdateCallSettings = 25,
102+
103+
[System.Runtime.Serialization.EnumMember(Value = @"start-closed-captions-call")]
104+
StartClosedCaptionsCall = 26,
105+
106+
[System.Runtime.Serialization.EnumMember(Value = @"stop-closed-captions-call")]
107+
StopClosedCaptionsCall = 27,
102108

103109
}
104110

Packages/StreamVideo/Runtime/Core/Models/OwnCapability.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public enum OwnCapability
3131
UpdateCallSettings = 23,
3232
EnableNoiseCancellation = 24,
3333
ChangeMaxDuration = 25,
34+
StartClosedCaptionsCall = 26,
35+
StopClosedCaptionsCall = 27,
3436
}
3537

3638
internal static class OwnCapabilityExt
@@ -65,6 +67,8 @@ public static OwnCapabilityInternalEnum ToInternalEnum(this OwnCapability ownCap
6567
case OwnCapability.UpdateCallSettings: return OwnCapabilityInternalEnum.UpdateCallSettings;
6668
case OwnCapability.EnableNoiseCancellation: return OwnCapabilityInternalEnum.EnableNoiseCancellation;
6769
case OwnCapability.ChangeMaxDuration: return OwnCapabilityInternalEnum.ChangeMaxDuration;
70+
case OwnCapability.StartClosedCaptionsCall: return OwnCapabilityInternalEnum.StartClosedCaptionsCall;
71+
case OwnCapability.StopClosedCaptionsCall: return OwnCapabilityInternalEnum.StopClosedCaptionsCall;
6872
default: throw new ArgumentOutOfRangeException(nameof(ownCapability), ownCapability, null);
6973
}
7074
}
@@ -99,6 +103,8 @@ public static OwnCapability ToPublicEnum(this OwnCapabilityInternalEnum ownCapab
99103
case OwnCapabilityInternalEnum.UpdateCallSettings: return OwnCapability.UpdateCallSettings;
100104
case OwnCapabilityInternalEnum.EnableNoiseCancellation: return OwnCapability.EnableNoiseCancellation;
101105
case OwnCapabilityInternalEnum.ChangeMaxDuration: return OwnCapability.ChangeMaxDuration;
106+
case OwnCapabilityInternalEnum.StartClosedCaptionsCall: return OwnCapability.StartClosedCaptionsCall;
107+
case OwnCapabilityInternalEnum.StopClosedCaptionsCall: return OwnCapability.StopClosedCaptionsCall;
102108
default: throw new ArgumentOutOfRangeException(nameof(ownCapability), ownCapability, null);
103109
}
104110
}

0 commit comments

Comments
 (0)