Browse Source
convert HighlightModel usages (as highlights) to Story
renovate/org.robolectric-robolectric-4.x
convert HighlightModel usages (as highlights) to Story
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
14 changed files with 48 additions and 52 deletions
-
14app/src/main/java/awais/instagrabber/adapters/HighlightsAdapter.java
-
6app/src/main/java/awais/instagrabber/adapters/viewholder/HighlightViewHolder.java
-
4app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java
-
4app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java
-
2app/src/main/java/awais/instagrabber/repositories/StoriesService.kt
-
5app/src/main/java/awais/instagrabber/repositories/responses/HdProfilePicUrlInfo.kt
-
5app/src/main/java/awais/instagrabber/repositories/responses/ImageUrl.kt
-
2app/src/main/java/awais/instagrabber/repositories/responses/User.kt
-
5app/src/main/java/awais/instagrabber/repositories/responses/stories/CoverMedia.kt
-
9app/src/main/java/awais/instagrabber/repositories/responses/stories/Story.kt
-
6app/src/main/java/awais/instagrabber/viewmodels/HighlightsViewModel.java
-
10app/src/main/java/awais/instagrabber/viewmodels/ProfileFragmentViewModel.kt
-
24app/src/main/java/awais/instagrabber/webservices/StoriesRepository.kt
-
4app/src/test/java/awais/instagrabber/viewmodels/ProfileFragmentViewModelTest.kt
@ -1,5 +0,0 @@ |
|||||
package awais.instagrabber.repositories.responses |
|
||||
|
|
||||
import java.io.Serializable |
|
||||
|
|
||||
data class HdProfilePicUrlInfo(val url: String, private val width: Int, private val height: Int) : Serializable |
|
@ -0,0 +1,5 @@ |
|||||
|
package awais.instagrabber.repositories.responses |
||||
|
|
||||
|
import java.io.Serializable |
||||
|
|
||||
|
data class ImageUrl(val url: String, private val width: Int, private val height: Int) : Serializable |
@ -0,0 +1,5 @@ |
|||||
|
package awais.instagrabber.repositories.responses.stories |
||||
|
|
||||
|
import awais.instagrabber.repositories.responses.ImageUrl |
||||
|
|
||||
|
data class CoverMedia(val croppedImageVersion: ImageUrl) |
@ -1,19 +1,24 @@ |
|||||
package awais.instagrabber.repositories.responses.stories |
package awais.instagrabber.repositories.responses.stories |
||||
|
|
||||
import java.io.Serializable |
import java.io.Serializable |
||||
import awais.instagrabber.repositories.responses.Media |
|
||||
import awais.instagrabber.repositories.responses.User |
import awais.instagrabber.repositories.responses.User |
||||
import awais.instagrabber.utils.TextUtils |
import awais.instagrabber.utils.TextUtils |
||||
|
|
||||
data class Story( |
data class Story( |
||||
|
// universal |
||||
val id: String?, |
val id: String?, |
||||
val latestReelMedia: Long?, // = timestamp |
val latestReelMedia: Long?, // = timestamp |
||||
var seen: Long?, |
var seen: Long?, |
||||
val user: User?, |
val user: User?, |
||||
|
// for stories |
||||
|
val mediaCount: Int?, |
||||
val muted: Boolean?, |
val muted: Boolean?, |
||||
val hasBestiesMedia: Boolean?, |
val hasBestiesMedia: Boolean?, |
||||
val mediaCount: Int?, |
|
||||
val items: List<StoryMedia>?, // may be null |
val items: List<StoryMedia>?, // may be null |
||||
|
// for highlights |
||||
|
val coverMedia: CoverMedia?, |
||||
|
val title: String?, |
||||
|
// invented fields |
||||
val broadcast: Broadcast? // does not naturally occur |
val broadcast: Broadcast? // does not naturally occur |
||||
) : Serializable { |
) : Serializable { |
||||
val dateTime: String |
val dateTime: String |
||||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue