Skip to content

Commit

Permalink
Add new fields for transcript feature (#620)
Browse files Browse the repository at this point in the history
* CXAN-404 Add the new fields

* CXAN-404 Add custom adapter for list

* CXAN-404 Remove SafeList annotation

* CXAN-404 Add new interactions fields

* CXAN-404 Remove unused classes

---------

Co-authored-by: Alexander Baltser <[email protected]>
  • Loading branch information
abalcer-ls and Alexander Baltser committed Jun 29, 2023
1 parent 82a813b commit 703fd6e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions models/src/main/java/com/vimeo/networking2/EditSession.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.squareup.moshi.JsonClass
* @param hasWatermark Whether the video has watermark.
* @param isRated Whether the video is rated.
* @param minTierForMovie The minimum required Vimeo membership for the user to be able to share or download the video.
* @param isEditedByTve Whether the video has been edited by Transcript Video Editing.
*/
@JsonClass(generateAdapter = true)
data class EditSession(
Expand All @@ -37,4 +38,7 @@ data class EditSession(

@Json(name = "min_tier_for_movie")
val minTierForMovie: String? = null,

@Json(name = "is_edited_by_tve")
val isEditedByTve: Boolean? = null
)
15 changes: 14 additions & 1 deletion models/src/main/java/com/vimeo/networking2/VideoInteractions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import com.vimeo.networking2.annotations.Internal
* @param watchLater Information about whether this video appears on the authenticated user's Watch Later list.
* @param legalHold Information about whether this video is subject to ongoing litigation.
* @param restrictedPrivacyOptions Information about whether this user has restricted privacy options.
* @param trim Information about where and how to trim the video.
* @param createEditor Information about where and how to edit a video using the Vimeo Create editor.
* @param transcriptVideoEditor Information about where and how to edit a video using the Transcription-based
* Video Editor editor.
*/
@JsonClass(generateAdapter = true)
data class VideoInteractions(
Expand Down Expand Up @@ -66,5 +70,14 @@ data class VideoInteractions(
val legalHold: BasicInteraction? = null,

@Json(name = "has_restricted_privacy_options")
val restrictedPrivacyOptions: BasicInteraction? = null
val restrictedPrivacyOptions: BasicInteraction? = null,

@Json(name = "trim")
val trim: BasicInteraction? = null,

@Json(name = "create_editor")
val createEditor: BasicInteraction? = null,

@Json(name = "transcript_video_editor")
val transcriptVideoEditor: BasicInteraction? = null
)

0 comments on commit 703fd6e

Please sign in to comment.