Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
17 changed files with 304 additions and 25 deletions
-
35app/src/main/java/awais/instagrabber/fragments/CommentsViewerFragment.java
-
66app/src/main/java/awais/instagrabber/fragments/LikesViewerFragment.java
-
1app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java
-
5app/src/main/java/awais/instagrabber/repositories/MediaRepository.java
-
79app/src/main/java/awais/instagrabber/repositories/responses/GraphQLUserListFetchResponse.java
-
59app/src/main/java/awais/instagrabber/webservices/GraphQLService.java
-
3app/src/main/java/awais/instagrabber/webservices/MediaService.java
-
15app/src/main/res/navigation/comments_nav_graph.xml
-
12app/src/main/res/navigation/direct_messages_nav_graph.xml
-
12app/src/main/res/navigation/discover_nav_graph.xml
-
4app/src/main/res/navigation/feed_nav_graph.xml
-
4app/src/main/res/navigation/hashtag_nav_graph.xml
-
8app/src/main/res/navigation/likes_nav_graph.xml
-
4app/src/main/res/navigation/location_nav_graph.xml
-
16app/src/main/res/navigation/notification_viewer_nav_graph.xml
-
5app/src/main/res/navigation/profile_nav_graph.xml
-
1app/src/main/res/values/strings.xml
@ -0,0 +1,79 @@ |
|||
package awais.instagrabber.repositories.responses; |
|||
|
|||
import androidx.annotation.NonNull; |
|||
|
|||
import java.util.List; |
|||
import java.util.Objects; |
|||
|
|||
import awais.instagrabber.models.ProfileModel; |
|||
import awais.instagrabber.utils.TextUtils; |
|||
|
|||
public class GraphQLUserListFetchResponse { |
|||
private String nextMaxId; |
|||
private String status; |
|||
private List<ProfileModel> items; |
|||
|
|||
public GraphQLUserListFetchResponse(final String nextMaxId, |
|||
final String status, |
|||
final List<ProfileModel> items) { |
|||
this.nextMaxId = nextMaxId; |
|||
this.status = status; |
|||
this.items = items; |
|||
} |
|||
|
|||
public boolean isMoreAvailable() { |
|||
return !TextUtils.isEmpty(nextMaxId); |
|||
} |
|||
|
|||
public String getNextMaxId() { |
|||
return nextMaxId; |
|||
} |
|||
|
|||
public GraphQLUserListFetchResponse setNextMaxId(final String nextMaxId) { |
|||
this.nextMaxId = nextMaxId; |
|||
return this; |
|||
} |
|||
|
|||
public String getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public GraphQLUserListFetchResponse setStatus(final String status) { |
|||
this.status = status; |
|||
return this; |
|||
} |
|||
|
|||
public List<ProfileModel> getItems() { |
|||
return items; |
|||
} |
|||
|
|||
public GraphQLUserListFetchResponse setItems(final List<ProfileModel> items) { |
|||
this.items = items; |
|||
return this; |
|||
} |
|||
|
|||
@Override |
|||
public boolean equals(final Object o) { |
|||
if (this == o) return true; |
|||
if (o == null || getClass() != o.getClass()) return false; |
|||
final GraphQLUserListFetchResponse that = (GraphQLUserListFetchResponse) o; |
|||
return Objects.equals(nextMaxId, that.nextMaxId) && |
|||
Objects.equals(status, that.status) && |
|||
Objects.equals(items, that.items); |
|||
} |
|||
|
|||
@Override |
|||
public int hashCode() { |
|||
return Objects.hash(nextMaxId, status, items); |
|||
} |
|||
|
|||
@NonNull |
|||
@Override |
|||
public String toString() { |
|||
return "GraphQLUserListFetchResponse{" + |
|||
"nextMaxId='" + nextMaxId + '\'' + |
|||
", status='" + status + '\'' + |
|||
", items=" + items + |
|||
'}'; |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue