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