-
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 participant count session event (#494)
- Loading branch information
1 parent
03c3a30
commit 0e8e550
Showing
8 changed files
with
142 additions
and
2 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
45 changes: 45 additions & 0 deletions
45
Sources/StreamVideo/OpenApi/generated/Models/CallRtmpBroadcastFailedEvent.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,45 @@ | ||
// | ||
// CallRtmpBroadcastFailedEvent.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
/** This event is sent when a call RTMP broadcast has failed */ | ||
|
||
public struct CallRtmpBroadcastFailedEvent: @unchecked Sendable, Event, Codable, JSONEncodable, Hashable, WSCallEvent { | ||
/** The unique identifier for a call (<type>:<id>) */ | ||
public var callCid: String | ||
/** Date/time of creation */ | ||
public var createdAt: Date | ||
/** Name of the given RTMP broadcast */ | ||
public var name: String | ||
/** The type of event: \"call.rtmp_broadcast_failed\" in this case */ | ||
public var type: String = "call.rtmp_broadcast_failed" | ||
|
||
public init(callCid: String, createdAt: Date, name: String, type: String = "call.rtmp_broadcast_failed") { | ||
self.callCid = callCid | ||
self.createdAt = createdAt | ||
self.name = name | ||
self.type = type | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case callCid = "call_cid" | ||
case createdAt = "created_at" | ||
case name | ||
case type | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encode(callCid, forKey: .callCid) | ||
try container.encode(createdAt, forKey: .createdAt) | ||
try container.encode(name, forKey: .name) | ||
try container.encode(type, forKey: .type) | ||
} | ||
} | ||
|
51 changes: 51 additions & 0 deletions
51
Sources/StreamVideo/OpenApi/generated/Models/CallSessionParticipantCountsUpdatedEvent.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,51 @@ | ||
// | ||
// CallSessionParticipantCountsUpdatedEvent.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
/** This event is sent when the participant counts in a call session are updated */ | ||
|
||
public struct CallSessionParticipantCountsUpdatedEvent: @unchecked Sendable, Event, Codable, JSONEncodable, Hashable, WSCallEvent { | ||
public var anonymousParticipantCount: Int | ||
public var callCid: String | ||
public var createdAt: Date | ||
public var participantsCountByRole: [String: Int] | ||
/** Call session ID */ | ||
public var sessionId: String | ||
/** The type of event: \"call.session_participant_count_updated\" in this case */ | ||
public var type: String = "call.session_participant_count_updated" | ||
|
||
public init(anonymousParticipantCount: Int, callCid: String, createdAt: Date, participantsCountByRole: [String: Int], sessionId: String, type: String = "call.session_participant_count_updated") { | ||
self.anonymousParticipantCount = anonymousParticipantCount | ||
self.callCid = callCid | ||
self.createdAt = createdAt | ||
self.participantsCountByRole = participantsCountByRole | ||
self.sessionId = sessionId | ||
self.type = type | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case anonymousParticipantCount = "anonymous_participant_count" | ||
case callCid = "call_cid" | ||
case createdAt = "created_at" | ||
case participantsCountByRole = "participants_count_by_role" | ||
case sessionId = "session_id" | ||
case type | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encode(anonymousParticipantCount, forKey: .anonymousParticipantCount) | ||
try container.encode(callCid, forKey: .callCid) | ||
try container.encode(createdAt, forKey: .createdAt) | ||
try container.encode(participantsCountByRole, forKey: .participantsCountByRole) | ||
try container.encode(sessionId, forKey: .sessionId) | ||
try container.encode(type, forKey: .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
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