27 lines
638 B
C#
27 lines
638 B
C#
|
|
using System.Text.Json.Serialization;
|
||
|
|
using WatchIt.Database.Model.Person;
|
||
|
|
|
||
|
|
namespace WatchIt.Common.Model.Roles;
|
||
|
|
|
||
|
|
public class CreatorRoleUniversalRequest : CreatorRoleRequest
|
||
|
|
{
|
||
|
|
#region PROPERTIES
|
||
|
|
|
||
|
|
[JsonPropertyName("person_id")]
|
||
|
|
public long PersonId { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("media_id")]
|
||
|
|
public long MediaId { get; set; }
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#region PUBLIC METHODS
|
||
|
|
|
||
|
|
public PersonCreatorRole CreateCreatorRole() => base.CreateCreatorRole(MediaId, PersonId);
|
||
|
|
|
||
|
|
public void UpdateCreatorRole(PersonCreatorRole item) => base.UpdateCreatorRole(item, MediaId, PersonId);
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
}
|