be.looorent.ponto.client.CollectionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ponto-client Show documentation
Show all versions of ponto-client Show documentation
Client library for Ponto (https://myponto.com)
The newest version!
package be.looorent.ponto.client;
import be.looorent.ponto.synchronization.Synchronization;
import java.time.LocalDateTime;
import java.util.Collection;
import java.util.Optional;
/**
* More than a simple collection of entities, this also stores
* the response page.
* @param the type of entities
*/
public interface CollectionResponse {
Page getPage();
Collection getEntities();
Optional getSynchronizedAt();
Optional getLatestSynchronization();
default boolean hasBefore() {
return getPage().hasBefore();
}
default boolean hasAfter() {
return getPage().hasAfter();
}
}