Skip to content

Commit

Permalink
[APT-9577] Add DRM for downloads for offline usage : code improvement…
Browse files Browse the repository at this point in the history
… : update and add some missing kdocs
  • Loading branch information
rubeus90 committed Feb 13, 2024
1 parent 6f451bf commit 88ff7bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal interface DrmLicenseDownloader {

/**
* Download and persist the DRM license
* @return the key ID of the DRM license. This key ID can be used to fetch the license from storage
* @return object containing information about the downloaded DRM license
*/
suspend fun downloadDrmLicense(
requestUrl: String,
Expand Down
7 changes: 7 additions & 0 deletions Armadillo/src/main/java/com/scribd/armadillo/models/Models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ data class Chapter(

data class DrmInfo(val drmType: DrmType, val licenseServer: String, val drmHeaders: Map<String, String> = emptyMap()) : Serializable

/**
* Object representing information about a downloaded DRM license.
*
* @param drmKeyId ID used to identify and to retrieve the downloaded license from local storage
* @param drmType the type of DRM solution of this license
* @param licenseServer the URL of the license server
*/
@kotlinx.serialization.Serializable
data class DrmDownload(
val drmKeyId: ByteArray,
Expand Down

0 comments on commit 88ff7bd

Please sign in to comment.