2024-10-06 14:51:58 +02:00
|
|
|
using System.Text.Json.Serialization;
|
2024-10-06 21:22:08 +02:00
|
|
|
using WatchIt.Database.Model.Person;
|
2024-10-06 14:51:58 +02:00
|
|
|
|
|
|
|
|
namespace WatchIt.Common.Model.Roles;
|
|
|
|
|
|
2024-10-08 19:56:14 +02:00
|
|
|
public class CreatorRolePersonRequest : CreatorRoleRequest
|
2024-10-06 14:51:58 +02:00
|
|
|
{
|
|
|
|
|
#region PROPERTIES
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("media_id")]
|
2024-10-08 19:56:14 +02:00
|
|
|
public required long MediaId { get; set; }
|
2024-10-06 14:51:58 +02:00
|
|
|
|
|
|
|
|
#endregion
|
2024-10-06 21:22:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region PUBLIC METHODS
|
2024-10-08 19:56:14 +02:00
|
|
|
|
|
|
|
|
public PersonCreatorRole CreateCreatorRole(long personId) => base.CreateCreatorRole(MediaId, personId);
|
|
|
|
|
|
2024-10-06 21:22:08 +02:00
|
|
|
#endregion
|
2024-10-06 14:51:58 +02:00
|
|
|
}
|