Refactoring, database structure changed
This commit is contained in:
16
WatchIt.DTO/Models/Generics/Rating/RatingUserResponse.cs
Normal file
16
WatchIt.DTO/Models/Generics/Rating/RatingUserResponse.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WatchIt.DTO.Models.Generics.Rating;
|
||||
|
||||
public class RatingUserResponse : IRatingUserResponse
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
public byte Rating { get; set; }
|
||||
public DateTimeOffset Date { get; set; }
|
||||
|
||||
[JsonIgnore] decimal? IRatingResponse.Rating => Rating;
|
||||
[JsonIgnore] DateTimeOffset? IRatingUserResponse.Date => Date;
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user