Skip to content

Commit

Permalink
ライブラリーの導入
Browse files Browse the repository at this point in the history
  • Loading branch information
over authored and over committed Jul 17, 2021
1 parent d70af55 commit 0242c06
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 18 deletions.
20 changes: 19 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,25 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.+'

// glide
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'

// rxjava, rxkotlin, rxandroid
implementation 'io.reactivex.rxjava3:rxjava:3.0.13'
implementation 'io.reactivex.rxjava3:rxkotlin:3.0.1'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'

// recyclerview
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.recyclerview:recyclerview-selection:1.1.0"

// retrofit2, moshi
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.moshi:moshi-kotlin:1.12.0"

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
90 changes: 90 additions & 0 deletions app/src/main/java/tokyo/oversoftware/bookexplorer/entity/Books.kt
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
)

Large diffs are not rendered by default.

This file was deleted.

0 comments on commit 0242c06

Please sign in to comment.