Update AnimeKaiDto.kt
This commit is contained in:
parent
9358fe5315
commit
82c9b5b182
1 changed files with 20 additions and 2 deletions
|
@ -1,18 +1,36 @@
|
||||||
package eu.kanade.tachiyomi.animeextension.en.animekai
|
package eu.kanade.tachiyomi.animeextension.en.animekai
|
||||||
|
|
||||||
// DTO for generating token requests
|
/**
|
||||||
|
* Data Transfer Object for token request.
|
||||||
|
*
|
||||||
|
* @property id The unique identifier for the token request.
|
||||||
|
* @property time The timestamp for the token request.
|
||||||
|
*/
|
||||||
data class TokenRequestDTO(
|
data class TokenRequestDTO(
|
||||||
val id: String,
|
val id: String,
|
||||||
val time: String,
|
val time: String,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data Transfer Object for iframe data.
|
||||||
|
*
|
||||||
|
* @property encryptedData The encrypted data contained in the iframe.
|
||||||
|
*/
|
||||||
data class IframeDataDTO(
|
data class IframeDataDTO(
|
||||||
val encryptedData: String,
|
val encryptedData: String,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data Transfer Object for AnimeKai decoder.
|
||||||
|
*
|
||||||
|
* @property secret The secret key for decoding.
|
||||||
|
* @property iv The initialization vector for decoding.
|
||||||
|
* @property tokenRequest The token request data.
|
||||||
|
* @property iframeData The iframe data to decode.
|
||||||
|
*/
|
||||||
data class AnimekaiDecoderDTO(
|
data class AnimekaiDecoderDTO(
|
||||||
val secret: String = AnimekaiDecoder.SECRET,
|
val secret: String = AnimekaiDecoder.SECRET,
|
||||||
val iv: String = AnimekaiDecoder.IV,
|
val iv: String = AnimekaiDecoder.IV,
|
||||||
val tokenRequest: TokenRequestDTO,
|
val tokenRequest: TokenRequestDTO,
|
||||||
val iframeData: IframeDataDTO,
|
val iframeData: IframeDataDTO,
|
||||||
)
|
)
|
Loading…
Add table
Add a link
Reference in a new issue