basics
This commit is contained in:
@@ -9,8 +9,6 @@ public class MediaPhotoImage
|
||||
public required byte[] Image { get; set; }
|
||||
public required string MimeType { get; set; }
|
||||
public DateTime UploadDate { get; set; }
|
||||
public bool IsMediaBackground { get; set; }
|
||||
public bool IsUniversalBackground { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -19,6 +17,7 @@ public class MediaPhotoImage
|
||||
#region NAVIGATION
|
||||
|
||||
public virtual Media Media { get; set; } = null!;
|
||||
public virtual MediaPhotoImageBackground? MediaPhotoImageBackground { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace WatchIt.Database.Model.Media;
|
||||
|
||||
public class MediaPhotoImageBackground
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
public required Guid Id { get; set; }
|
||||
public required bool IsUniversalBackground { get; set; }
|
||||
public required byte[] FirstGradientColor { get; set; }
|
||||
public required byte[] SecondGradientColor { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region NAVIGATION
|
||||
|
||||
public virtual MediaPhotoImage MediaPhotoImage { get; set; } = null!;
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user