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 ActorRolePersonRequest : ActorRoleRequest, IActorRolePersonRequest
|
2024-10-06 14:51:58 +02:00
|
|
|
{
|
|
|
|
|
#region PROPERTIES
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("media_id")]
|
2024-10-08 19:56:14 +02:00
|
|
|
public long MediaId { get; set; }
|
2024-10-06 14:51:58 +02:00
|
|
|
|
|
|
|
|
#endregion
|
2024-10-08 19:56:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-06 21:22:08 +02:00
|
|
|
#region PUBLIC METHODS
|
|
|
|
|
|
2024-10-08 19:56:14 +02:00
|
|
|
public PersonActorRole CreateActorRole(long personId) => base.CreateActorRole(MediaId, personId);
|
2024-10-06 21:22:08 +02:00
|
|
|
|
|
|
|
|
#endregion
|
2024-10-06 14:51:58 +02:00
|
|
|
}
|