package performa.intercom.resources;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class ScrollableCompanyCollection  extends ScrollableTypedDataCollection<Company> {

    @Override
    public ScrollableCompanyCollection scroll() {
        return DataResource.scroll(getScrollParam(), "companies", ScrollableCompanyCollection.class);
    }

    @JsonProperty("companies")
    @Override
    public List<Company> getPage() {
        return super.getPage();
    }
}
