2024-04-27 22:36:16 +02:00
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WatchIt.Common.Model.Genres;
|
|
|
|
|
|
|
|
|
|
|
|
public class GenreResponse : Genre
|
|
|
|
|
|
{
|
|
|
|
|
|
#region PROPERTIES
|
|
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("id")]
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region CONSTRUCTORS
|
2024-09-19 22:58:39 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonConstructor]
|
|
|
|
|
|
public GenreResponse() {}
|
2024-04-27 22:36:16 +02:00
|
|
|
|
|
|
|
|
|
|
[SetsRequiredMembers]
|
|
|
|
|
|
public GenreResponse(Database.Model.Common.Genre genre)
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = genre.Id;
|
|
|
|
|
|
Name = genre.Name;
|
|
|
|
|
|
Description = genre.Description;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|