-
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.
Merge branch 'develop' into feature/view-search
- Loading branch information
Showing
9 changed files
with
114 additions
and
9 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
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
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
20 changes: 20 additions & 0 deletions
20
app/src/main/java/com/flab/deepsleep/data/entity/photo/Exif.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,20 @@ | ||
package com.flab.deepsleep.data.entity.photo | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Exif( | ||
@SerializedName("aperture") | ||
val aperture: String?, | ||
@SerializedName("exposure_time") | ||
val exposureTime: String?, | ||
@SerializedName("focal_length") | ||
val focalLength: String?, | ||
@SerializedName("iso") | ||
val iso: Int?, | ||
@SerializedName("make") | ||
val make: String?, | ||
@SerializedName("model") | ||
val model: String?, | ||
@SerializedName("name") | ||
val name: String? | ||
) |
36 changes: 36 additions & 0 deletions
36
app/src/main/java/com/flab/deepsleep/data/entity/photo/RandomPhoto.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,36 @@ | ||
package com.flab.deepsleep.data.entity.photo | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class RandomPhoto( | ||
@SerializedName("blur_hash") | ||
val blurHash: String?, | ||
@SerializedName("color") | ||
val color: String?, | ||
@SerializedName("created_at") | ||
val createdAt: String?, | ||
@SerializedName("description") | ||
val description: String?, | ||
@SerializedName("downloads") | ||
val downloads: Int?, | ||
@SerializedName("height") | ||
val height: Int?, | ||
@SerializedName("id") | ||
val id: String?, | ||
@SerializedName("liked_by_user") | ||
val likedByUser: Boolean?, | ||
@SerializedName("likes") | ||
val likes: Int?, | ||
@SerializedName("public_domain") | ||
val publicDomain: Boolean?, | ||
@SerializedName("updated_at") | ||
val updatedAt: String?, | ||
@SerializedName("width") | ||
val width: Int?, | ||
@SerializedName("exif") | ||
val exif: Exif?, | ||
@SerializedName("urls") | ||
val urls: Urls?, | ||
@SerializedName("user") | ||
val user: User? | ||
) |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/flab/deepsleep/data/entity/photo/Urls.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,16 @@ | ||
package com.flab.deepsleep.data.entity.photo | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Urls( | ||
@SerializedName("full") | ||
val full: String?, | ||
@SerializedName("raw") | ||
val raw: String?, | ||
@SerializedName("regular") | ||
val regular: String?, | ||
@SerializedName("small") | ||
val small: String?, | ||
@SerializedName("thumb") | ||
val thumb: String? | ||
) |
26 changes: 26 additions & 0 deletions
26
app/src/main/java/com/flab/deepsleep/data/entity/photo/User.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,26 @@ | ||
package com.flab.deepsleep.data.entity.photo | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class User( | ||
@SerializedName("bio") | ||
val bio: String?, | ||
@SerializedName("id") | ||
val id: String?, | ||
@SerializedName("location") | ||
val location: String?, | ||
@SerializedName("name") | ||
val name: String?, | ||
@SerializedName("portfolio_url") | ||
val portfolioUrl: String?, | ||
@SerializedName("total_collections") | ||
val totalCollections: Int?, | ||
@SerializedName("total_likes") | ||
val totalLikes: Int?, | ||
@SerializedName("total_photos") | ||
val totalPhotos: Int?, | ||
@SerializedName("updated_at") | ||
val updatedAt: String?, | ||
@SerializedName("username") | ||
val username: String? | ||
) |
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 |
---|---|---|
|
@@ -33,4 +33,3 @@ class PhotoViewModel @Inject constructor(private val unplashRepositoryImpl: Unpl | |
} | ||
} | ||
|
||
} |
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