File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
data/impl/src/main/kotlin/com/ninecraft/booket/core/data/impl/mapper
model/src/main/kotlin/com/ninecraft/booket/core/model
network/src/main/kotlin/com/ninecraft/booket/core/network/response
library/src/main/kotlin/com/ninecraft/booket/feature/library
search/src/main/kotlin/com/ninecraft/booket/feature/search/library Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -130,15 +130,15 @@ internal fun LibraryBookSummary.toModel(): LibraryBookSummaryModel {
130130 return LibraryBookSummaryModel (
131131 userBookId = userBookId,
132132 userId = userId,
133- bookIsbn = bookIsbn ,
133+ isbn13 = isbn13 ,
134134 bookTitle = bookTitle,
135135 bookAuthor = bookAuthor,
136136 status = status,
137- recordCount = recordCount,
138137 coverImageUrl = coverImageUrl,
139138 publisher = publisher,
140139 createdAt = createdAt,
141140 updatedAt = updatedAt,
141+ recordCount = recordCount,
142142 )
143143}
144144
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ data class LibraryBooksModel(
2121data class LibraryBookSummaryModel (
2222 val userBookId : String = " " ,
2323 val userId : String = " " ,
24- val bookIsbn : String = " " ,
24+ val isbn13 : String = " " ,
2525 val bookTitle : String = " " ,
2626 val bookAuthor : String = " " ,
2727 val status : String = " " ,
Original file line number Diff line number Diff line change @@ -31,16 +31,14 @@ data class LibraryBookSummary(
3131 val userBookId : String ,
3232 @SerialName(" userId" )
3333 val userId : String ,
34- @SerialName(" bookIsbn " )
35- val bookIsbn : String ,
34+ @SerialName(" isbn13 " )
35+ val isbn13 : String ,
3636 @SerialName(" bookTitle" )
3737 val bookTitle : String ,
3838 @SerialName(" bookAuthor" )
3939 val bookAuthor : String ,
4040 @SerialName(" status" )
4141 val status : String ,
42- @SerialName(" recordCount" )
43- val recordCount : Int ,
4442 @SerialName(" coverImageUrl" )
4543 val coverImageUrl : String ,
4644 @SerialName(" publisher" )
@@ -49,6 +47,8 @@ data class LibraryBookSummary(
4947 val createdAt : String ,
5048 @SerialName(" updatedAt" )
5149 val updatedAt : String ,
50+ @SerialName(" recordCount" )
51+ val recordCount : Int ,
5252)
5353
5454@Serializable
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ internal fun LibraryContent(
128128 LibraryBookItem (
129129 book = it,
130130 onBookClick = {
131- state.eventSink(LibraryUiEvent .OnBookClick (it.userBookId, it.bookIsbn ))
131+ state.eventSink(LibraryUiEvent .OnBookClick (it.userBookId, it.isbn13 ))
132132 },
133133 )
134134 Box (
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ internal fun LibrarySearchContent(
188188 ) {
189189 items(
190190 count = state.books.size,
191- key = { index -> state.books[index].bookIsbn },
191+ key = { index -> state.books[index].isbn13 },
192192 ) { index ->
193193 Column {
194194 LibraryBookItem (
@@ -197,7 +197,7 @@ internal fun LibrarySearchContent(
197197 state.eventSink(
198198 LibrarySearchUiEvent .OnBookClick (
199199 userBookId = book.userBookId,
200- isbn13 = book.bookIsbn ,
200+ isbn13 = book.isbn13 ,
201201 ),
202202 )
203203 },
You can’t perform that action at this time.
0 commit comments