-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated code for closed captions (#595)
- Loading branch information
1 parent
c71d241
commit 05fe4e1
Showing
19 changed files
with
336 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
Sources/StreamVideo/OpenApi/generated/Models/CallClosedCaptionsFailedEvent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// Copyright © 2024 Stream.io Inc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public final class CallClosedCaptionsFailedEvent: @unchecked Sendable, Event, Codable, JSONEncodable, Hashable, WSCallEvent { | ||
|
||
public var callCid: String | ||
public var createdAt: Date | ||
public var type: String = "call.closed_captions_failed" | ||
|
||
public init(callCid: String, createdAt: Date) { | ||
self.callCid = callCid | ||
self.createdAt = createdAt | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case callCid = "call_cid" | ||
case createdAt = "created_at" | ||
case type | ||
} | ||
|
||
public static func == (lhs: CallClosedCaptionsFailedEvent, rhs: CallClosedCaptionsFailedEvent) -> Bool { | ||
lhs.callCid == rhs.callCid && | ||
lhs.createdAt == rhs.createdAt && | ||
lhs.type == rhs.type | ||
} | ||
|
||
public func hash(into hasher: inout Hasher) { | ||
hasher.combine(callCid) | ||
hasher.combine(createdAt) | ||
hasher.combine(type) | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
Sources/StreamVideo/OpenApi/generated/Models/CallClosedCaptionsStartedEvent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// Copyright © 2024 Stream.io Inc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public final class CallClosedCaptionsStartedEvent: @unchecked Sendable, Event, Codable, JSONEncodable, Hashable, WSCallEvent { | ||
|
||
public var callCid: String | ||
public var createdAt: Date | ||
public var type: String = "call.closed_captions_started" | ||
|
||
public init(callCid: String, createdAt: Date) { | ||
self.callCid = callCid | ||
self.createdAt = createdAt | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case callCid = "call_cid" | ||
case createdAt = "created_at" | ||
case type | ||
} | ||
|
||
public static func == (lhs: CallClosedCaptionsStartedEvent, rhs: CallClosedCaptionsStartedEvent) -> Bool { | ||
lhs.callCid == rhs.callCid && | ||
lhs.createdAt == rhs.createdAt && | ||
lhs.type == rhs.type | ||
} | ||
|
||
public func hash(into hasher: inout Hasher) { | ||
hasher.combine(callCid) | ||
hasher.combine(createdAt) | ||
hasher.combine(type) | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
Sources/StreamVideo/OpenApi/generated/Models/CallClosedCaptionsStoppedEvent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// Copyright © 2024 Stream.io Inc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public final class CallClosedCaptionsStoppedEvent: @unchecked Sendable, Event, Codable, JSONEncodable, Hashable, WSCallEvent { | ||
|
||
public var callCid: String | ||
public var createdAt: Date | ||
public var type: String = "call.closed_captions_stopped" | ||
|
||
public init(callCid: String, createdAt: Date) { | ||
self.callCid = callCid | ||
self.createdAt = createdAt | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case callCid = "call_cid" | ||
case createdAt = "created_at" | ||
case type | ||
} | ||
|
||
public static func == (lhs: CallClosedCaptionsStoppedEvent, rhs: CallClosedCaptionsStoppedEvent) -> Bool { | ||
lhs.callCid == rhs.callCid && | ||
lhs.createdAt == rhs.createdAt && | ||
lhs.type == rhs.type | ||
} | ||
|
||
public func hash(into hasher: inout Hasher) { | ||
hasher.combine(callCid) | ||
hasher.combine(createdAt) | ||
hasher.combine(type) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsResponse.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Copyright © 2024 Stream.io Inc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public final class StartClosedCaptionsResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { | ||
|
||
public var duration: String | ||
|
||
public init(duration: String) { | ||
self.duration = duration | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case duration | ||
} | ||
|
||
public static func == (lhs: StartClosedCaptionsResponse, rhs: StartClosedCaptionsResponse) -> Bool { | ||
lhs.duration == rhs.duration | ||
} | ||
|
||
public func hash(into hasher: inout Hasher) { | ||
hasher.combine(duration) | ||
} | ||
} |
Oops, something went wrong.