Skip to content

Commit 17bc7ca

Browse files
Updated StatsOptions model (#789)
1 parent c15a3dc commit 17bc7ca

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Sources/StreamVideo/OpenApi/generated/Models/StatsOptions.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,26 @@ import Foundation
66

77
public final class StatsOptions: @unchecked Sendable, Codable, JSONEncodable, Hashable {
88

9+
public var enableRtcStats: Bool
910
public var reportingIntervalMs: Int
1011

11-
public init(reportingIntervalMs: Int) {
12+
public init(enableRtcStats: Bool, reportingIntervalMs: Int) {
13+
self.enableRtcStats = enableRtcStats
1214
self.reportingIntervalMs = reportingIntervalMs
1315
}
1416

1517
public enum CodingKeys: String, CodingKey, CaseIterable {
18+
case enableRtcStats = "enable_rtc_stats"
1619
case reportingIntervalMs = "reporting_interval_ms"
1720
}
1821

1922
public static func == (lhs: StatsOptions, rhs: StatsOptions) -> Bool {
20-
lhs.reportingIntervalMs == rhs.reportingIntervalMs
23+
lhs.enableRtcStats == rhs.enableRtcStats &&
24+
lhs.reportingIntervalMs == rhs.reportingIntervalMs
2125
}
2226

2327
public func hash(into hasher: inout Hasher) {
28+
hasher.combine(enableRtcStats)
2429
hasher.combine(reportingIntervalMs)
2530
}
2631
}

0 commit comments

Comments
 (0)