Browse Source
convert FeedStoryModel to Story and Broadcast response data classes
convert FeedStoryModel to Story and Broadcast response data classes
there seems to be a toolbar problem with live stories, will check tomorrowrenovate/org.robolectric-robolectric-4.x
Austin Huang
3 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
18 changed files with 204 additions and 243 deletions
-
20app/src/main/java/awais/instagrabber/adapters/FeedStoriesAdapter.java
-
30app/src/main/java/awais/instagrabber/adapters/FeedStoriesListAdapter.java
-
17app/src/main/java/awais/instagrabber/adapters/viewholder/FeedStoryViewHolder.java
-
18app/src/main/java/awais/instagrabber/adapters/viewholder/StoryListViewHolder.java
-
14app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java
-
66app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java
-
12app/src/main/java/awais/instagrabber/fragments/main/FeedFragment.java
-
20app/src/main/java/awais/instagrabber/models/FeedStoryModel.kt
-
5app/src/main/java/awais/instagrabber/repositories/StoriesService.kt
-
2app/src/main/java/awais/instagrabber/repositories/responses/stories/Broadcast.kt
-
13app/src/main/java/awais/instagrabber/repositories/responses/stories/Story.kt
-
1app/src/main/java/awais/instagrabber/repositories/responses/stories/StoryMedia.kt
-
21app/src/main/java/awais/instagrabber/repositories/responses/stories/StoryStickerResponse.kt
-
26app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java
-
6app/src/main/java/awais/instagrabber/viewmodels/FeedStoriesViewModel.java
-
99app/src/main/java/awais/instagrabber/webservices/StoriesRepository.kt
-
6app/src/main/res/layout/fragment_story_viewer.xml
-
1app/src/test/java/awais/instagrabber/common/Adapters.kt
@ -1,20 +0,0 @@ |
|||
package awais.instagrabber.models |
|||
|
|||
import awais.instagrabber.repositories.responses.User |
|||
import awais.instagrabber.utils.TextUtils |
|||
import java.io.Serializable |
|||
import java.util.* |
|||
|
|||
data class FeedStoryModel( |
|||
val storyMediaId: String, |
|||
val profileModel: User, |
|||
var isFullyRead: Boolean, |
|||
val timestamp: Long, |
|||
val firstStoryModel: StoryModel?, |
|||
val mediaCount: Int, |
|||
val isLive: Boolean, |
|||
val isBestie: Boolean |
|||
) : Serializable { |
|||
val dateTime: String |
|||
get() = TextUtils.epochSecondToString(timestamp) |
|||
} |
@ -1,20 +1,3 @@ |
|||
package awais.instagrabber.repositories.responses; |
|||
package awais.instagrabber.repositories.responses.stories |
|||
|
|||
public class StoryStickerResponse { |
|||
private final String status; |
|||
|
|||
public StoryStickerResponse(final String status) { |
|||
this.status = status; |
|||
} |
|||
|
|||
public String getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return "StoryStickerResponse{" + |
|||
"status='" + status + '\'' + |
|||
'}'; |
|||
} |
|||
} |
|||
data class StoryStickerResponse(val status: String?) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue