|
freesound-juce
A JUCE client for accessing the Freesound API
|
Class representing a page from a Freesound response. Contains methods for automatically paging through the different pages, knowing the number of total results and the results on the page. More...
#include <FreesoundAPI.h>
Public Member Functions | |
| FSList () | |
| Default constructor, creates an empty object. More... | |
| FSList (var response) | |
| Constructor from the var object which contains the response from FS API, automatically obtaining the next and previous page; the total of results and the results of the page. More... | |
| String | getNextPage () |
| Returns the URL for the next page. More... | |
| String | getPreviousPage () |
| Returns the URL for the previous page. More... | |
| var | getResults () |
| Returns the results from the current page. More... | |
| int | getCount () |
| Gets the number of entries in the complete list. More... | |
Protected Attributes | |
| int | count |
| Total number of results returned from the FS response. | |
| String | nextPage |
| URL for accessing the next page of results. | |
| String | previousPage |
| URL for accessing the previous page of results. | |
| var | results |
| var variable containing the results of the page | |
Class representing a page from a Freesound response. Contains methods for automatically paging through the different pages, knowing the number of total results and the results on the page.
| FSList::FSList | ( | ) |
Default constructor, creates an empty object.
| FSList::FSList | ( | var | response | ) |
Constructor from the var object which contains the response from FS API, automatically obtaining the next and previous page; the total of results and the results of the page.
| response | The response from a FS API call which returns a list. |
| int FSList::getCount | ( | ) |
Gets the number of entries in the complete list.
| String FSList::getNextPage | ( | ) |
Returns the URL for the next page.
| String FSList::getPreviousPage | ( | ) |
Returns the URL for the previous page.
| var FSList::getResults | ( | ) |
Returns the results from the current page.
1.8.16