2020-10-17 10:07:03 +00:00
|
|
|
package awais.instagrabber.repositories.responses;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2020-10-27 11:33:21 +00:00
|
|
|
public class PostsFetchResponse {
|
2021-01-07 12:36:33 +00:00
|
|
|
private final List<Media> feedModels;
|
|
|
|
private final boolean hasNextPage;
|
|
|
|
private final String nextCursor;
|
2020-10-17 10:07:03 +00:00
|
|
|
|
2021-01-07 12:36:33 +00:00
|
|
|
public PostsFetchResponse(final List<Media> feedModels, final boolean hasNextPage, final String nextCursor) {
|
2020-10-17 10:07:03 +00:00
|
|
|
this.feedModels = feedModels;
|
|
|
|
this.hasNextPage = hasNextPage;
|
|
|
|
this.nextCursor = nextCursor;
|
|
|
|
}
|
|
|
|
|
2021-01-07 12:36:33 +00:00
|
|
|
public List<Media> getFeedModels() {
|
2020-10-17 10:07:03 +00:00
|
|
|
return feedModels;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean hasNextPage() {
|
|
|
|
return hasNextPage;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getNextCursor() {
|
|
|
|
return nextCursor;
|
|
|
|
}
|
|
|
|
}
|