🍱 models for API return-types

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2023-09-15 09:51:13 +02:00
parent 3e11390e42
commit f1455d7ee3
2 changed files with 26 additions and 0 deletions

14
backend/Movie.cs Normal file
View file

@ -0,0 +1,14 @@
namespace backend;
public class Movie
{
public string Title { get; set; }
public string Year { get; set; }
public string imdbID { get; set; }
public string Type { get; set; }
public string Poster { get; set; }
}

12
backend/MovieResponse.cs Normal file
View file

@ -0,0 +1,12 @@
using System.Collections.Generic;
namespace backend;
public class MovieResponse
{
public string Response { get; set; }
public string TotalResults { get; set; }
public List<Movie> Search { get; set; }
}