-
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.
- Loading branch information
Showing
36 changed files
with
475 additions
and
151 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
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/fr/shikkanime/caches/CountryCodeSlugSeasonEpisodeTypeNumberKeyCache.kt
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,12 @@ | ||
package fr.shikkanime.caches | ||
|
||
import fr.shikkanime.entities.enums.CountryCode | ||
import fr.shikkanime.entities.enums.EpisodeType | ||
|
||
data class CountryCodeSlugSeasonEpisodeTypeNumberKeyCache( | ||
val countryCode: CountryCode, | ||
val slug: String, | ||
val season: Int, | ||
val episodeType: EpisodeType, | ||
val number: Int | ||
) |
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
26 changes: 26 additions & 0 deletions
26
...nime/converters/episode_mapping/EpisodeMappingToEpisodeMappingWithoutAnimeDtoConverter.kt
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,26 @@ | ||
package fr.shikkanime.converters.episode_mapping | ||
|
||
import fr.shikkanime.converters.AbstractConverter | ||
import fr.shikkanime.dtos.mappings.EpisodeMappingWithoutAnimeDto | ||
import fr.shikkanime.entities.EpisodeMapping | ||
import fr.shikkanime.utils.withUTCString | ||
|
||
class EpisodeMappingToEpisodeMappingWithoutAnimeDtoConverter : | ||
AbstractConverter<EpisodeMapping, EpisodeMappingWithoutAnimeDto>() { | ||
override fun convert(from: EpisodeMapping): EpisodeMappingWithoutAnimeDto { | ||
return EpisodeMappingWithoutAnimeDto( | ||
uuid = from.uuid!!, | ||
releaseDateTime = from.releaseDateTime.withUTCString(), | ||
lastReleaseDateTime = from.lastReleaseDateTime.withUTCString(), | ||
lastUpdateDateTime = from.lastUpdateDateTime.withUTCString(), | ||
episodeType = from.episodeType!!, | ||
season = from.season!!, | ||
number = from.number!!, | ||
duration = from.duration, | ||
title = from.title, | ||
description = from.description, | ||
image = from.image!!, | ||
status = from.status | ||
) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...in/fr/shikkanime/converters/episode_variant/EpisodeVariantToEpisodeVariantDtoConverter.kt
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
4 changes: 3 additions & 1 deletion
4
...n/fr/shikkanime/dtos/EpisodeMappingDto.kt → ...kanime/dtos/mappings/EpisodeMappingDto.kt
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
20 changes: 20 additions & 0 deletions
20
src/main/kotlin/fr/shikkanime/dtos/mappings/EpisodeMappingWithoutAnimeDto.kt
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,20 @@ | ||
package fr.shikkanime.dtos.mappings | ||
|
||
import fr.shikkanime.dtos.enums.Status | ||
import fr.shikkanime.entities.enums.EpisodeType | ||
import java.util.* | ||
|
||
data class EpisodeMappingWithoutAnimeDto( | ||
val uuid: UUID, | ||
val releaseDateTime: String, | ||
val lastReleaseDateTime: String, | ||
val lastUpdateDateTime: String, | ||
var episodeType: EpisodeType, | ||
val season: Int, | ||
val number: Int, | ||
val duration: Long, | ||
val title: String?, | ||
val description: String?, | ||
val image: String, | ||
val status: Status, | ||
) |
Oops, something went wrong.