PersonRolesEditCreatorComponent fixed
This commit is contained in:
@@ -3,7 +3,7 @@ using WatchIt.Database.Model.Person;
|
|||||||
|
|
||||||
namespace WatchIt.Common.Model.Roles;
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
public abstract class ActorRoleRequest : ActorRole
|
public abstract class ActorRoleRequest : ActorRole, IActorRoleRequest
|
||||||
{
|
{
|
||||||
#region PUBLIC METHODS
|
#region PUBLIC METHODS
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ public abstract class CreatorRole
|
|||||||
#region PROPERTIES
|
#region PROPERTIES
|
||||||
|
|
||||||
[JsonPropertyName("type_id")]
|
[JsonPropertyName("type_id")]
|
||||||
public required short TypeId { get; set; }
|
public short TypeId { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ using WatchIt.Database.Model.Person;
|
|||||||
|
|
||||||
namespace WatchIt.Common.Model.Roles;
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
public class CreatorRoleMediaRequest : CreatorRoleRequest
|
public class CreatorRoleMediaRequest : CreatorRoleRequest, ICreatorRoleMediaRequest
|
||||||
{
|
{
|
||||||
#region PROPERTIES
|
#region PROPERTIES
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ using WatchIt.Database.Model.Person;
|
|||||||
|
|
||||||
namespace WatchIt.Common.Model.Roles;
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
public class CreatorRolePersonRequest : CreatorRoleRequest
|
public class CreatorRolePersonRequest : CreatorRoleRequest, ICreatorRolePersonRequest
|
||||||
{
|
{
|
||||||
#region PROPERTIES
|
#region PROPERTIES
|
||||||
|
|
||||||
[JsonPropertyName("media_id")]
|
[JsonPropertyName("media_id")]
|
||||||
public required long MediaId { get; set; }
|
public long MediaId { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using WatchIt.Database.Model.Person;
|
|||||||
|
|
||||||
namespace WatchIt.Common.Model.Roles;
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
public abstract class CreatorRoleRequest : CreatorRole
|
public abstract class CreatorRoleRequest : CreatorRole, ICreatorRoleRequest
|
||||||
{
|
{
|
||||||
#region PUBLIC METHODS
|
#region PUBLIC METHODS
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using WatchIt.Database.Model.Person;
|
|||||||
|
|
||||||
namespace WatchIt.Common.Model.Roles;
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
public class CreatorRoleUniversalRequest : CreatorRoleRequest
|
public class CreatorRoleUniversalRequest : CreatorRoleRequest, ICreatorRolePersonRequest, ICreatorRoleMediaRequest
|
||||||
{
|
{
|
||||||
#region PROPERTIES
|
#region PROPERTIES
|
||||||
|
|
||||||
@@ -14,6 +14,21 @@ public class CreatorRoleUniversalRequest : CreatorRoleRequest
|
|||||||
public long MediaId { get; set; }
|
public long MediaId { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region CONSTRUCTORS
|
||||||
|
|
||||||
|
public CreatorRoleUniversalRequest() { }
|
||||||
|
|
||||||
|
public CreatorRoleUniversalRequest(CreatorRoleResponse data)
|
||||||
|
{
|
||||||
|
MediaId = data.MediaId;
|
||||||
|
PersonId = data.PersonId;
|
||||||
|
TypeId = data.TypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
|
public interface ICreatorRoleMediaRequest : ICreatorRoleRequest
|
||||||
|
{
|
||||||
|
#region PROPERTIES
|
||||||
|
|
||||||
|
public long PersonId { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
|
public interface ICreatorRolePersonRequest : ICreatorRoleRequest
|
||||||
|
{
|
||||||
|
#region PROPERTIES
|
||||||
|
|
||||||
|
public long MediaId { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
namespace WatchIt.Common.Model.Roles;
|
||||||
|
|
||||||
|
public interface ICreatorRoleRequest
|
||||||
|
{
|
||||||
|
#region PROPERTIES
|
||||||
|
|
||||||
|
public short TypeId { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
@@ -65,9 +65,6 @@
|
|||||||
<th scope="col">
|
<th scope="col">
|
||||||
Role type
|
Role type
|
||||||
</th>
|
</th>
|
||||||
<th scope="col">
|
|
||||||
Role name
|
|
||||||
</th>
|
|
||||||
<th class="table-cell-fit" scope="col">
|
<th class="table-cell-fit" scope="col">
|
||||||
Actions
|
Actions
|
||||||
</th>
|
</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user