getFavourites
open suspend override fun getFavourites(pageNumber: Int, pageSize: Int, sortBy: SortByType, sortOrder: SortOrderType): Result<List<FavouritesRecord>, Error>
Makes a call to Favourites Service Microservice and retrieves the collection of FavouritesRecord instances.
Return
a valid Result object with the collection of FavouritesRecord instances, if successful, or Error instance in case of the failure.
Parameters
pageNumber
indicate the page number to retrieve.
pageSize
indicate the page size(number of records) to return in response.
sortBy
specifies that the records are to be sorted by SortByType.TIMESTAMP (default).
sortOrder
specifies that the records are to be ordered by either SortOrderType.DESC (default) or SortOrderType.ASC