authentication refresh fixed, movie creation page added
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WatchIt.Common.Model.Accounts;
|
||||
|
||||
public abstract class AccountProfilePicture
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
[JsonPropertyName("image")]
|
||||
public required byte[] Image { get; set; }
|
||||
|
||||
[JsonPropertyName("mime_type")]
|
||||
public required string MimeType { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region CONSTRUCTORS
|
||||
|
||||
[JsonConstructor]
|
||||
public AccountProfilePicture() {}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WatchIt.Common.Model.Accounts;
|
||||
|
||||
public class AccountProfilePictureResponse : AccountProfilePicture
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public required Guid Id { get; set; }
|
||||
|
||||
[JsonPropertyName("upload_date")]
|
||||
public required DateTime UploadDate { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region CONSTRUCTORS
|
||||
|
||||
[JsonConstructor]
|
||||
public AccountProfilePictureResponse() {}
|
||||
|
||||
[SetsRequiredMembers]
|
||||
public AccountProfilePictureResponse(Database.Model.Account.AccountProfilePicture accountProfilePicture)
|
||||
{
|
||||
Id = accountProfilePicture.Id;
|
||||
Image = accountProfilePicture.Image;
|
||||
MimeType = accountProfilePicture.MimeType;
|
||||
UploadDate = accountProfilePicture.UploadDate;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -25,7 +25,10 @@ public class RegisterResponse
|
||||
|
||||
|
||||
#region CONSTRUCTORS
|
||||
|
||||
|
||||
[JsonConstructor]
|
||||
public RegisterResponse() {}
|
||||
|
||||
[SetsRequiredMembers]
|
||||
public RegisterResponse(Account account)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user