-
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 pull request #1 from Roaim/lorem_picksum
lorem_picsum
- Loading branch information
Showing
29 changed files
with
191 additions
and
425 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
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
93 changes: 0 additions & 93 deletions
93
sample_pinboard_app/src/main/java/com/roaim/kotlinpinboard/TestActivity.kt
This file was deleted.
Oops, something went wrong.
46 changes: 19 additions & 27 deletions
46
sample_pinboard_app/src/main/java/com/roaim/kotlinpinboard/data/PinDataSource.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
6 changes: 3 additions & 3 deletions
6
sample_pinboard_app/src/main/java/com/roaim/kotlinpinboard/data/PinDataSourceFactory.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package com.roaim.kotlinpinboard.data | ||
|
||
import androidx.paging.DataSource | ||
import com.roaim.kotlinpinboard.data.model.Pin | ||
import com.roaim.kotlinpinboard.data.model.LoremPicksum | ||
|
||
class PinDataSourceFactory(private val pinDataSource: PinDataSource) : DataSource.Factory<String, Pin>() { | ||
override fun create(): DataSource<String, Pin> { | ||
class PinDataSourceFactory(private val pinDataSource: PinDataSource) : DataSource.Factory<Int, LoremPicksum>() { | ||
override fun create(): DataSource<Int, LoremPicksum> { | ||
return pinDataSource | ||
} | ||
} |
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
8 changes: 0 additions & 8 deletions
8
sample_pinboard_app/src/main/java/com/roaim/kotlinpinboard/data/model/CategoriesItem.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
sample_pinboard_app/src/main/java/com/roaim/kotlinpinboard/data/model/Links.kt
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
sample_pinboard_app/src/main/java/com/roaim/kotlinpinboard/data/model/LoremPicksum.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,10 @@ | ||
package com.roaim.kotlinpinboard.data.model | ||
|
||
data class LoremPicksum( | ||
val author: String? = null, | ||
val width: Int? = null, | ||
val downloadUrl: String? = null, | ||
val id: String? = null, | ||
val url: String? = null, | ||
val height: Int? = null | ||
) |
Oops, something went wrong.