-
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
Showing
23 changed files
with
268 additions
and
154 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
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
10 changes: 0 additions & 10 deletions
10
app/src/main/java/com/dranoer/photoalbum/ui/album/AlbumUiState.kt
This file was deleted.
Oops, something went wrong.
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
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
7 changes: 7 additions & 0 deletions
7
app/src/main/java/com/dranoer/photoalbum/ui/model/AlbumUiModel.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,7 @@ | ||
package com.dranoer.photoalbum.ui.model | ||
|
||
data class AlbumUiModel( | ||
val userId: Int, | ||
val id: Int, | ||
val title: String, | ||
) |
8 changes: 8 additions & 0 deletions
8
app/src/main/java/com/dranoer/photoalbum/ui/model/AlbumUiState.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,8 @@ | ||
package com.dranoer.photoalbum.ui.model | ||
|
||
sealed class AlbumUiState { | ||
object Empty : AlbumUiState() | ||
object Loading : AlbumUiState() | ||
data class Loaded(val data: List<AlbumUiModel>, val isRefreshing: Boolean = false) : AlbumUiState() | ||
data class Error(val message: String) : AlbumUiState() | ||
} |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/dranoer/photoalbum/ui/model/PhotoUiModel.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,9 @@ | ||
package com.dranoer.photoalbum.ui.model | ||
|
||
data class PhotoUiModel( | ||
val albumId: Int, | ||
val id: Int, | ||
val title: String, | ||
val url: String, | ||
val thumbnailUrl: String, | ||
) |
8 changes: 8 additions & 0 deletions
8
app/src/main/java/com/dranoer/photoalbum/ui/model/PhotoUiState.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,8 @@ | ||
package com.dranoer.photoalbum.ui.model | ||
|
||
sealed class PhotoUiState { | ||
object Empty : PhotoUiState() | ||
object Loading : PhotoUiState() | ||
class Loaded(val data: List<PhotoUiModel>, val isRefreshing: Boolean = false) : PhotoUiState() | ||
class Error(val message: String) : PhotoUiState() | ||
} |
Oops, something went wrong.