mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-22 15:00:35 -04:00
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using Kyoo.Models.Attributes;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
/// <summary>
|
|
/// An actor, voice actor, writer, animator, somebody who worked on a <see cref="Show"/>.
|
|
/// </summary>
|
|
public class People : IResource
|
|
{
|
|
/// <inheritdoc />
|
|
public int ID { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public string Slug { get; set; }
|
|
|
|
/// <summary>
|
|
/// The name of this person.
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// The path of this poster.
|
|
/// By default, the http path for this poster is returned from the public API.
|
|
/// This can be disabled using the internal query flag.
|
|
/// </summary>
|
|
[SerializeAs("{HOST}/api/people/{Slug}/poster")] public string Poster { get; set; }
|
|
|
|
/// <summary>
|
|
/// The link to metadata providers that this person has. See <see cref="MetadataID{T}"/> for more information.
|
|
/// </summary>
|
|
[EditableRelation] [LoadableRelation] public ICollection<MetadataID<People>> ExternalIDs { get; set; }
|
|
|
|
/// <summary>
|
|
/// The list of roles this person has played in. See <see cref="PeopleRole"/> for more information.
|
|
/// </summary>
|
|
[EditableRelation] [LoadableRelation] public ICollection<PeopleRole> Roles { get; set; }
|
|
}
|
|
}
|