Skip to content

Commit

Permalink
Remove name field from SharedMonsterLore
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira committed Jul 19, 2024
1 parent 8ae0ba6 commit 1f15244
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import br.alexandregpereira.hunter.shareContent.domain.model.ShareMonsterLoreEnt
internal fun MonsterLore.toShareMonsterLore(): ShareMonsterLore {
return ShareMonsterLore(
index = index,
name = name,
entries = entries.map {
ShareMonsterLoreEntry(
title = it.title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import br.alexandregpereira.hunter.shareContent.domain.model.ShareMonsterLore
internal fun ShareMonsterLore.toMonsterLore(): MonsterLore {
return MonsterLore(
index = index,
name = name,
name = "",
entries = entries.map {
MonsterLoreEntry(
title = it.title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import kotlinx.serialization.Serializable
@Serializable
internal data class ShareMonsterLore(
val index: String,
val name: String,
val entries: List<ShareMonsterLoreEntry>,
)

Expand Down

0 comments on commit 1f15244

Please sign in to comment.