Fix portrait display to use the preview instead of the character Detail.
This avoid to fetch the character detail just to get the portrait.
This commit is contained in:
parent
a84c170396
commit
50697ceb93
8 changed files with 53 additions and 15 deletions
|
|
@ -3,6 +3,8 @@ package com.pixelized.shared.lwa.model.characterSheet
|
|||
data class CharacterSheetPreview(
|
||||
val characterSheetId: String,
|
||||
val name: String,
|
||||
val portrait: String?,
|
||||
val thumbnail: String?,
|
||||
val job: String,
|
||||
val level: Int,
|
||||
val externalLink: String?,
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@ class CharacterSheetJsonFactory(
|
|||
return CharacterSheetPreview(
|
||||
characterSheetId = sheet.id,
|
||||
name = sheet.name,
|
||||
portrait = sheet.portrait,
|
||||
thumbnail = sheet.thumbnail,
|
||||
job = sheet.job,
|
||||
level = sheet.level,
|
||||
externalLink = sheet.externalLink,
|
||||
|
|
@ -114,6 +116,8 @@ class CharacterSheetJsonFactory(
|
|||
return CharacterSheetPreview(
|
||||
characterSheetId = json.id,
|
||||
name = json.name,
|
||||
portrait = json.portrait,
|
||||
thumbnail = json.thumbnail,
|
||||
job = json.job ?: "",
|
||||
level = json.level,
|
||||
externalLink = json.externalLink,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue