-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New public PlaybackVideoDetails class as @artem-y-pamediagroup suggested on PR #26 - Rollback PlaybackResponseModel to internal struct - Renaming PlayBack API folder to Playback API - Added userAgent param comment on PlaybackAPI and PlaybackAPIService - Fixed indentation on parameters comments
- Loading branch information
1 parent
7a2b39f
commit 0029ac4
Showing
9 changed files
with
131 additions
and
65 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
28 changes: 28 additions & 0 deletions
28
Sources/PlaybackSDK/Playback API/PlaybackVideoDetails.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,28 @@ | ||
// | ||
// PlaybackVideoDetails.swift | ||
// PlaybackSDK | ||
// | ||
// Created by Stefano Russello on 29/11/24. | ||
// | ||
|
||
#if !os(macOS) | ||
import Foundation | ||
|
||
public class PlaybackVideoDetails { | ||
|
||
public var videoId: String | ||
public var url: String? | ||
public var title: String? | ||
public var thumbnail: String? | ||
public var description: String? | ||
|
||
public init(videoId: String, url: String? = nil, title: String? = nil, thumbnail: String? = nil, description: String? = nil) { | ||
self.videoId = videoId | ||
self.url = url | ||
self.title = title | ||
self.thumbnail = thumbnail | ||
self.description = description | ||
} | ||
} | ||
|
||
#endif |
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