-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted in a backwards-compatible manner the Firestore Deck model t…
…o use a shortened card metadata model for storing it's card lists.
- Loading branch information
Showing
13 changed files
with
142 additions
and
149 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
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
10 changes: 0 additions & 10 deletions
10
app/src/main/java/com/r0adkll/deckbuilder/arch/data/features/decks/model/AttackEntity.kt
This file was deleted.
Oops, something went wrong.
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
10 changes: 8 additions & 2 deletions
10
app/src/main/java/com/r0adkll/deckbuilder/arch/data/features/decks/model/DeckEntity.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,11 +1,17 @@ | ||
package com.r0adkll.deckbuilder.arch.data.features.decks.model | ||
|
||
import com.google.firebase.firestore.Exclude | ||
|
||
|
||
class DeckEntity( | ||
@Exclude var id: String = "", | ||
val name: String = "", | ||
val description: String = "", | ||
val image: String? = null, | ||
@Deprecated("Use 'cardStacks'") val cards: List<PokemonCardEntity> = emptyList(), | ||
val cardStacks: List<CardEntity>? = null, | ||
|
||
@Deprecated("No longer used", replaceWith = ReplaceWith("cardMetadata")) | ||
val cards: List<PokemonCardEntity> = emptyList(), | ||
|
||
val cardMetadata: List<CardMetadataEntity>? = null, | ||
val timestamp: Long = 0L | ||
) |
8 changes: 0 additions & 8 deletions
8
app/src/main/java/com/r0adkll/deckbuilder/arch/data/features/decks/model/EffectEntity.kt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
app/src/main/java/com/r0adkll/deckbuilder/arch/data/features/decks/model/ExpansionEntity.kt
This file was deleted.
Oops, something went wrong.
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.