From 8fc639ed05300c8a77470c2eeaa6d7d1db417b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Sun, 16 Jun 2024 19:16:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Creation=20of=20another=20Game=20Cl?= =?UTF-8?q?ass=20to=20implement=20the=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/GameAtlas/Models/Game.cs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Sources/GameAtlas/Models/Game.cs diff --git a/Sources/GameAtlas/Models/Game.cs b/Sources/GameAtlas/Models/Game.cs new file mode 100644 index 0000000..770edf5 --- /dev/null +++ b/Sources/GameAtlas/Models/Game.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +namespace Models +{ + public class Game + { + [JsonPropertyName("id")] + public int Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("summary")] + public string Summary { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("cover.url")] + public string CoverUrl { get; set; } + + public Game() { } + } +}