2024-09-20 23:37:55 +02:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
2024-09-28 02:36:53 +02:00
|
|
|
namespace WatchIt.Common.Model.Rating;
|
2024-09-20 23:37:55 +02:00
|
|
|
|
2024-09-28 02:36:53 +02:00
|
|
|
public class RatingRequest
|
2024-09-20 23:37:55 +02:00
|
|
|
{
|
|
|
|
|
#region PROPERTIES
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("rating")]
|
|
|
|
|
public required short Rating { get; set; }
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region CONSTRUCTORS
|
|
|
|
|
|
|
|
|
|
[SetsRequiredMembers]
|
2024-09-28 02:36:53 +02:00
|
|
|
public RatingRequest(short rating)
|
2024-09-20 23:37:55 +02:00
|
|
|
{
|
|
|
|
|
Rating = rating;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|