Skip to content

Commit

Permalink
Correct scheduledStartTime/scheduledEndtTime field names
Browse files Browse the repository at this point in the history
  • Loading branch information
SKrotkih committed Dec 25, 2022
1 parent 73667fc commit 98cafbf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion YTLiveStreaming.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.summary = "YTLiveStreaming is an YouTube Live Streaming Framework"
s.requires_arc = true

s.version = "0.2.36"
s.version = "0.2.38"

# Initialize
# Check podspec
Expand Down
8 changes: 4 additions & 4 deletions YTLiveStreaming/LiveBroadcasts/CreateLiveBroadcastBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ struct CreateLiveBroadcastBody: Codable {
var scheduledStartTime: String
var scheduledEndTime: String

init(title: String, description: String, startDateTime: Date, endDateTime: Date) {
init(title: String, description: String, scheduledStartTime: Date, scheduledEndTime: Date) {
self.title = title
self.description = description
scheduledStartTime = startDateTime.toJSONformat()
scheduledEndTime = endDateTime.toJSONformat()
self.scheduledStartTime = scheduledStartTime.toJSONformat()
self.scheduledEndTime = scheduledEndTime.toJSONformat()
}
}

Expand Down Expand Up @@ -78,7 +78,7 @@ struct CreateLiveBroadcastBody: Codable {
let contentDetails: ContentDetails

init(body: PostLiveBroadcastBody) {
snippet = Snipped(title: body.title, description: body.description, startDateTime: body.startDateTime, endDateTime: body.endDateTime)
snippet = Snipped(title: body.title, description: body.description, scheduledStartTime: body.scheduledStartTime, scheduledEndTime: body.scheduledEndTime)
status = Status(privacyStatus: body.privacyStatus, selfDeclaredMadeForKids: body.selfDeclaredMadeForKids)
contentDetails = ContentDetails(enableAutoStart: body.enableAutoStart,
enableAutoStop: body.enableAutoStop,
Expand Down
10 changes: 5 additions & 5 deletions YTLiveStreaming/LiveBroadcasts/LiveBroadcastStreamModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ public enum LifiCycleStatus: String, CaseIterable {
**/
public struct PostLiveBroadcastBody {
let title: String // snippet.title
let startDateTime: Date // snippet.scheduledStartTime
let description: String // snippet.description
let endDateTime: Date // snippet.scheduledEndTime
let scheduledStartTime: Date // snippet.scheduledStartTime
let scheduledEndTime: Date // snippet.scheduledEndTime
let selfDeclaredMadeForKids: String // status.selfDeclaredMadeForKids
let enableAutoStart: Bool // contentDetails.enableAutoStart
let enableAutoStop: Bool // contentDetails.enableAutoStop
Expand All @@ -194,11 +194,11 @@ public struct PostLiveBroadcastBody {
let privacyStatus: String // status.privacyStatus ("public"
let isReusable: Bool // For LiveStream insert used. Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times.

public init(title: String, startDateTime: Date, description: String, endDateTime: Date, selfDeclaredMadeForKids: String, enableAutoStart: Bool, enableAutoStop: Bool, enableClosedCaptions: Bool, enableDvr: Bool, enableEmbed: Bool, recordFromStart: Bool, enableMonitorStream: Bool, broadcastStreamDelayMs: Int, privacyStatus: String, isReusable: Bool) {
public init(title: String, scheduledStartTime: Date, description: String, scheduledEndTime: Date, selfDeclaredMadeForKids: String, enableAutoStart: Bool, enableAutoStop: Bool, enableClosedCaptions: Bool, enableDvr: Bool, enableEmbed: Bool, recordFromStart: Bool, enableMonitorStream: Bool, broadcastStreamDelayMs: Int, privacyStatus: String, isReusable: Bool) {
self.title = title
self.startDateTime = startDateTime
self.scheduledStartTime = scheduledStartTime
self.description = description
self.endDateTime = endDateTime
self.scheduledEndTime = scheduledEndTime
self.selfDeclaredMadeForKids = selfDeclaredMadeForKids
self.enableAutoStart = enableAutoStart
self.enableAutoStop = enableAutoStop
Expand Down

0 comments on commit 98cafbf

Please sign in to comment.