2021-05-29 14:46:23 +00:00
|
|
|
package awais.instagrabber.repositories.responses;
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import awais.instagrabber.models.Comment;
|
|
|
|
|
|
|
|
public class ChildCommentsFetchResponse {
|
|
|
|
private final int childCommentCount;
|
2021-06-07 22:10:48 +00:00
|
|
|
private final String nextMaxChildCursor;
|
2021-05-29 14:46:23 +00:00
|
|
|
private final List<Comment> childComments;
|
2021-06-07 22:10:48 +00:00
|
|
|
private final boolean hasMoreTailChildComments;
|
2021-05-29 14:46:23 +00:00
|
|
|
|
|
|
|
public ChildCommentsFetchResponse(final int childCommentCount,
|
2021-06-07 22:10:48 +00:00
|
|
|
final String nextMaxChildCursor,
|
|
|
|
final List<Comment> childComments,
|
|
|
|
final boolean hasMoreTailChildComments) {
|
2021-05-29 14:46:23 +00:00
|
|
|
this.childCommentCount = childCommentCount;
|
2021-06-07 22:10:48 +00:00
|
|
|
this.nextMaxChildCursor = nextMaxChildCursor;
|
2021-05-29 14:46:23 +00:00
|
|
|
this.childComments = childComments;
|
2021-06-07 22:10:48 +00:00
|
|
|
this.hasMoreTailChildComments = hasMoreTailChildComments;
|
2021-05-29 14:46:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int getChildCommentCount() {
|
|
|
|
return childCommentCount;
|
|
|
|
}
|
|
|
|
|
2021-06-07 22:10:48 +00:00
|
|
|
public String getNextMaxChildCursor() {
|
|
|
|
return nextMaxChildCursor;
|
2021-05-29 14:46:23 +00:00
|
|
|
}
|
|
|
|
|
2021-06-07 22:10:48 +00:00
|
|
|
public boolean getHasMoreTailChildComments() {
|
|
|
|
return hasMoreTailChildComments;
|
2021-05-29 14:46:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<Comment> getChildComments() {
|
|
|
|
return childComments;
|
|
|
|
}
|
|
|
|
|
|
|
|
@NonNull
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
2021-06-07 22:10:48 +00:00
|
|
|
return "ChildCommentsFetchResponse{" +
|
2021-05-29 14:46:23 +00:00
|
|
|
"childCommentCount=" + childCommentCount +
|
2021-06-07 22:10:48 +00:00
|
|
|
", nextMaxChildCursor='" + nextMaxChildCursor + '\'' +
|
2021-05-29 14:46:23 +00:00
|
|
|
", childComments=" + childComments +
|
2021-06-07 22:10:48 +00:00
|
|
|
", hasMoreTailChildComments=" + hasMoreTailChildComments +
|
2021-05-29 14:46:23 +00:00
|
|
|
'}';
|
|
|
|
}
|
|
|
|
}
|