✨ working totalResults and currentPage on the API
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
d4b53e9912
commit
187c669495
4 changed files with 12 additions and 7 deletions
|
@ -5,9 +5,10 @@ namespace backend;
|
|||
public class MovieResponse
|
||||
{
|
||||
|
||||
public MovieResponse(string Response, int TotalResults, IEnumerable<MovieDB> Search) {
|
||||
public MovieResponse(string Response, int TotalResults, int CurrentPage ,IEnumerable<MovieDB> Search) {
|
||||
this.Response = Response;
|
||||
this.TotalResults = TotalResults;
|
||||
this.CurrentPage = CurrentPage;
|
||||
this.Search = Search;
|
||||
}
|
||||
|
||||
|
@ -15,5 +16,7 @@ public class MovieResponse
|
|||
|
||||
public int TotalResults { get; set; }
|
||||
|
||||
public int CurrentPage { get; set; }
|
||||
|
||||
public IEnumerable<MovieDB> Search { get; set; }
|
||||
}
|
||||
|
|
Reference in a new issue