Browse Source
convert HighlightModel usages (as archives) to Story
renovate/org.robolectric-robolectric-4.x
convert HighlightModel usages (as archives) to Story
renovate/org.robolectric-robolectric-4.x
Austin Huang
3 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
10 changed files with 45 additions and 69 deletions
-
14app/src/main/java/awais/instagrabber/adapters/HighlightStoriesListAdapter.java
-
5app/src/main/java/awais/instagrabber/adapters/viewholder/StoryListViewHolder.java
-
17app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java
-
5app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java
-
14app/src/main/java/awais/instagrabber/models/HighlightModel.kt
-
3app/src/main/java/awais/instagrabber/repositories/StoriesService.kt
-
9app/src/main/java/awais/instagrabber/repositories/responses/stories/ArchiveResponse.kt
-
7app/src/main/java/awais/instagrabber/repositories/responses/stories/Story.kt
-
6app/src/main/java/awais/instagrabber/viewmodels/ArchivesViewModel.java
-
34app/src/main/java/awais/instagrabber/webservices/StoriesRepository.kt
@ -1,14 +0,0 @@ |
|||
package awais.instagrabber.models |
|||
|
|||
import awais.instagrabber.utils.TextUtils |
|||
|
|||
data class HighlightModel( |
|||
val title: String? = null, |
|||
val id: String = "", |
|||
val thumbnailUrl: String = "", |
|||
val timestamp: Long = 0, |
|||
val mediaCount: Int = 0, |
|||
) { |
|||
val dateTime: String |
|||
get() = TextUtils.epochSecondToString(timestamp) |
|||
} |
@ -0,0 +1,9 @@ |
|||
package awais.instagrabber.repositories.responses.stories |
|||
|
|||
data class ArchiveResponse( |
|||
val numResults: Int, |
|||
val maxId: String?, |
|||
val moreAvailable: Boolean, |
|||
val status: String, |
|||
val items: List<Story> |
|||
) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue