-
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.
- Loading branch information
over
authored and
over
committed
Jul 17, 2021
1 parent
d70af55
commit 0242c06
Showing
4 changed files
with
135 additions
and
18 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
90 changes: 90 additions & 0 deletions
90
app/src/main/java/tokyo/oversoftware/bookexplorer/entity/Books.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,90 @@ | ||
package tokyo.oversoftware.bookexplorer.entity | ||
|
||
data class Books( | ||
val kind: String, | ||
val totalItems: Int, | ||
val items: List<Book> | ||
) | ||
|
||
data class Book( | ||
val kind: String?, | ||
val id: String?, | ||
val etag: String?, | ||
val selfLink: String?, | ||
val volumeInfo: VolumeInfo?, | ||
val saleInfo: SaleInfo?, | ||
val accessInfo: AccessInfo? | ||
) | ||
|
||
data class VolumeInfo( | ||
val title: String?, | ||
val subtitle: String?, | ||
val authors: List<String>, | ||
val publisher: String?, | ||
val publishedDate: String?, | ||
val description: String?, | ||
val industryIdentifiers: List<IndustryIdentifier>?, | ||
val readingModes: ReadingModes?, | ||
val pageCount: Int?, | ||
val printType: String?, | ||
val categories: List<String>?, | ||
val averageRating: Int?, | ||
val ratingsCount: Int?, | ||
val maturityRating: String?, | ||
val allowAnonLogging: Boolean?, | ||
val contentVersion: String?, | ||
val panelizationSummary: PanelizationSummary?, | ||
val imageLinks: ImageLinks?, | ||
val language: String?, | ||
val previewLink: String?, | ||
val infoLink: String?, | ||
val canonicalVolumeLink: String?, | ||
) | ||
|
||
data class IndustryIdentifier( | ||
val type: String?, | ||
val identifier: String? | ||
) | ||
|
||
data class ReadingModes( | ||
val text: Boolean?, | ||
val image: Boolean? | ||
) | ||
|
||
data class PanelizationSummary( | ||
val containsEpubBubbles: Boolean?, | ||
val containsImageBubbles: Boolean? | ||
) | ||
|
||
data class ImageLinks( | ||
val smallThumbnail: String?, | ||
val thumbnail: String? | ||
) | ||
|
||
data class SaleInfo( | ||
val country: String?, | ||
val saleability: String?, | ||
val isEbook: Boolean? | ||
) | ||
|
||
data class AccessInfo( | ||
val country: String?, | ||
val viewability: String?, | ||
val embeddable: Boolean?, | ||
val publicDomain: Boolean?, | ||
val textToSpeechPermission: String?, | ||
val epub: Availability?, | ||
val pdf: Availability?, | ||
val webReaderLink: String?, | ||
val accessViewStatus: String?, | ||
val quoteSharingAllowed: Boolean?, | ||
val searchInfo: SearchInfo? | ||
) | ||
|
||
data class Availability( | ||
val isAvailable: Boolean | ||
) | ||
|
||
data class SearchInfo( | ||
val textSnippet: String | ||
) |
26 changes: 26 additions & 0 deletions
26
app/src/test/java/tokyo/oversoftware/bookexplorer/BookExplorerTest.kt
Large diffs are not rendered by default.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
app/src/test/java/tokyo/oversoftware/bookexplorer/ExampleUnitTest.kt
This file was deleted.
Oops, something went wrong.