I have to connect to a server with basic function. One function give me the number of elements and one function give me the elements after I provide the page which I want and the size of the page which can be biiger that 100
What I want is to get last X elements from the list with one call.
Example: I have 230 elements from one request to get last 29 elements. One first look solution is page 5 with 50 elements on the page and remove the top until remain 29 elements
My question is: How can calculate in the proper way wich is the last page and size of the page that give to me my elements?