BarInsta/app/src/main/java/awais/instagrabber/repositories/responses/ChildCommentsFetchResponse.kt

52 lines
1.6 KiB
Kotlin
Raw Normal View History

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;
private final String nextMaxChildCursor;
2021-05-29 14:46:23 +00:00
private final List<Comment> childComments;
private final boolean hasMoreTailChildComments;
2021-05-29 14:46:23 +00:00
public ChildCommentsFetchResponse(final int childCommentCount,
final String nextMaxChildCursor,
final List<Comment> childComments,
final boolean hasMoreTailChildComments) {
2021-05-29 14:46:23 +00:00
this.childCommentCount = childCommentCount;
this.nextMaxChildCursor = nextMaxChildCursor;
2021-05-29 14:46:23 +00:00
this.childComments = childComments;
this.hasMoreTailChildComments = hasMoreTailChildComments;
2021-05-29 14:46:23 +00:00
}
public int getChildCommentCount() {
return childCommentCount;
}
public String getNextMaxChildCursor() {
return nextMaxChildCursor;
2021-05-29 14:46:23 +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() {
return "ChildCommentsFetchResponse{" +
2021-05-29 14:46:23 +00:00
"childCommentCount=" + childCommentCount +
", nextMaxChildCursor='" + nextMaxChildCursor + '\'' +
2021-05-29 14:46:23 +00:00
", childComments=" + childComments +
", hasMoreTailChildComments=" + hasMoreTailChildComments +
2021-05-29 14:46:23 +00:00
'}';
}
}