authentication refresh fixed, movie creation page added
This commit is contained in:
21
WatchIt.Common/WatchIt.Common.Model/Media/Media.cs
Normal file
21
WatchIt.Common/WatchIt.Common.Model/Media/Media.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WatchIt.Common.Model.Media;
|
||||
|
||||
public abstract class Media
|
||||
{
|
||||
[JsonPropertyName("title")]
|
||||
public required string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("original_title")]
|
||||
public string? OriginalTitle { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[JsonPropertyName("release_date")]
|
||||
public DateOnly? ReleaseDate { get; set; }
|
||||
|
||||
[JsonPropertyName("length")]
|
||||
public short? Length { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WatchIt.Common.Model.Media;
|
||||
|
||||
public class MediaPosterImage
|
||||
{
|
||||
[JsonPropertyName("image")]
|
||||
public required byte[] Image { get; set; }
|
||||
|
||||
[JsonPropertyName("mime_type")]
|
||||
public required string MimeType { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user