-
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.
Criado novo modelo para a biblioteca com separador.
- Loading branch information
1 parent
c0080aa
commit 7127508
Showing
33 changed files
with
558 additions
and
235 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
BilingualReader/src/main/java/br/com/fenix/bilingualreader/model/entity/Separator.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,21 @@ | ||
package br.com.fenix.bilingualreader.model.entity | ||
|
||
data class Separator( | ||
var title: String, | ||
var items: Int = 0 | ||
) { | ||
override fun equals(other: Any?): Boolean { | ||
if (this === other) return true | ||
if (javaClass != other?.javaClass) return false | ||
|
||
other as Separator | ||
|
||
if (title != other.title) return false | ||
|
||
return true | ||
} | ||
|
||
override fun hashCode(): Int { | ||
return title.hashCode() | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
BilingualReader/src/main/java/br/com/fenix/bilingualreader/model/enums/LibraryMangaType.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package br.com.fenix.bilingualreader.model.enums | ||
|
||
enum class LibraryMangaType { | ||
GRID_BIG, GRID_MEDIUM, GRID_SMALL, LINE | ||
GRID_BIG, GRID_MEDIUM, GRID_SMALL, SEPARATOR_BIG, SEPARATOR_MEDIUM, LINE | ||
} |
3 changes: 3 additions & 0 deletions
3
...alReader/src/main/java/br/com/fenix/bilingualreader/service/listener/BaseCardListenner.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,3 @@ | ||
package br.com.fenix.bilingualreader.service.listener | ||
|
||
sealed interface BaseCardListenner |
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
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
13 changes: 13 additions & 0 deletions
13
...gualReader/src/main/java/br/com/fenix/bilingualreader/view/adapter/library/BaseAdapter.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,13 @@ | ||
package br.com.fenix.bilingualreader.view.adapter.library | ||
|
||
import br.com.fenix.bilingualreader.model.entity.Manga | ||
import br.com.fenix.bilingualreader.model.enums.Order | ||
import br.com.fenix.bilingualreader.service.listener.BaseCardListenner | ||
import br.com.fenix.bilingualreader.service.listener.MangaCardListener | ||
|
||
interface BaseAdapter<T, L : BaseCardListenner> { | ||
abstract var isAnimation: Boolean | ||
fun removeList(item: T); | ||
fun updateList(order: Order, list: MutableList<T>) | ||
fun attachListener(listener: L) | ||
} |
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
Oops, something went wrong.