From f1455d7ee3f5a5142ec11eaec0ceccb1434b5373 Mon Sep 17 00:00:00 2001 From: haraldnilsen Date: Fri, 15 Sep 2023 09:51:13 +0200 Subject: [PATCH] :bento: models for API return-types Co-authored-by: Sindre Kjelsrud --- backend/Movie.cs | 14 ++++++++++++++ backend/MovieResponse.cs | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 backend/Movie.cs create mode 100644 backend/MovieResponse.cs diff --git a/backend/Movie.cs b/backend/Movie.cs new file mode 100644 index 0000000..537e11f --- /dev/null +++ b/backend/Movie.cs @@ -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; } +} \ No newline at end of file diff --git a/backend/MovieResponse.cs b/backend/MovieResponse.cs new file mode 100644 index 0000000..dd207cc --- /dev/null +++ b/backend/MovieResponse.cs @@ -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 Search { get; set; } +}