Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #73 from readium/feature/DiViNa
Browse files Browse the repository at this point in the history
Feature: DiViNa
  • Loading branch information
aferditamuriqi authored Sep 6, 2019
2 parents 4619c71 + c6069f2 commit 77bc75d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion r2-shared/src/main/java/org/readium/r2/shared/Publication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Publication : Serializable {

// Navigator Type
enum class TYPE {
EPUB, CBZ, FXL, WEBPUB, AUDIO
EPUB, CBZ, FXL, WEBPUB, AUDIO, DiViNa
}

open class EnumCompanion<T, V>(private val valueMap: Map<T, V>) {
Expand All @@ -95,6 +95,7 @@ class Publication : Serializable {
EPUB(".epub"),
CBZ(".cbz"),
JSON(".json"),
DIVINA(".divina"),
AUDIO(".audiobook");

companion object : EnumCompanion<String, EXTENSION>(values().associateBy(EXTENSION::value))
Expand Down

0 comments on commit 77bc75d

Please sign in to comment.