mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Clean up documentation
This commit is contained in:
parent
96acd6481e
commit
526e47c362
@ -1,45 +1,77 @@
|
|||||||
namespace MediaBrowser.Controller.Providers
|
namespace MediaBrowser.Controller.Providers
|
||||||
{
|
{
|
||||||
/// <summary>The specific media type of an <see cref="IExternalId"/>.</summary>
|
/// <summary>
|
||||||
|
/// The specific media type of an <see cref="IExternalId"/>.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This is used as a translation key for clients.
|
||||||
|
/// </remarks>
|
||||||
public enum ExternalIdMediaType
|
public enum ExternalIdMediaType
|
||||||
{
|
{
|
||||||
/// <summary>There is no specific media type</summary>
|
/// <summary>
|
||||||
|
/// There is no specific media type associated with the external id, or the external provider only has one
|
||||||
|
/// id type so there is no need to be specific.
|
||||||
|
/// </summary>
|
||||||
None,
|
None,
|
||||||
|
|
||||||
/// <summary>A music album</summary>
|
/// <summary>
|
||||||
|
/// A music album.
|
||||||
|
/// </summary>
|
||||||
Album,
|
Album,
|
||||||
|
|
||||||
/// <summary>The artist of a music album</summary>
|
/// <summary>
|
||||||
|
/// The artist of a music album.
|
||||||
|
/// </summary>
|
||||||
AlbumArtist,
|
AlbumArtist,
|
||||||
|
|
||||||
/// <summary>The artist of a media item</summary>
|
/// <summary>
|
||||||
|
/// The artist of a media item.
|
||||||
|
/// </summary>
|
||||||
Artist,
|
Artist,
|
||||||
|
|
||||||
/// <summary>A boxed set of media</summary>
|
/// <summary>
|
||||||
|
/// A boxed set of media.
|
||||||
|
/// </summary>
|
||||||
BoxSet,
|
BoxSet,
|
||||||
|
|
||||||
/// <summary>A series episode</summary>
|
/// <summary>
|
||||||
|
/// A series episode.
|
||||||
|
/// </summary>
|
||||||
Episode,
|
Episode,
|
||||||
|
|
||||||
/// <summary>A movie</summary>
|
/// <summary>
|
||||||
|
/// A movie.
|
||||||
|
/// </summary>
|
||||||
Movie,
|
Movie,
|
||||||
|
|
||||||
/// <summary>An alternative artist apart from the main artist</summary>
|
/// <summary>
|
||||||
|
/// An alternative artist apart from the main artist.
|
||||||
|
/// </summary>
|
||||||
OtherArtist,
|
OtherArtist,
|
||||||
|
|
||||||
/// <summary>A person</summary>
|
/// <summary>
|
||||||
|
/// A person.
|
||||||
|
/// </summary>
|
||||||
Person,
|
Person,
|
||||||
|
|
||||||
/// <summary>A release group</summary>
|
/// <summary>
|
||||||
|
/// A release group.
|
||||||
|
/// </summary>
|
||||||
ReleaseGroup,
|
ReleaseGroup,
|
||||||
|
|
||||||
/// <summary>A single season of a series</summary>
|
/// <summary>
|
||||||
|
/// A single season of a series.
|
||||||
|
/// </summary>
|
||||||
Season,
|
Season,
|
||||||
|
|
||||||
/// <summary>A series</summary>
|
/// <summary>
|
||||||
|
/// A series.
|
||||||
|
/// </summary>
|
||||||
Series,
|
Series,
|
||||||
|
|
||||||
/// <summary>A music track</summary>
|
/// <summary>
|
||||||
|
/// A music track.
|
||||||
|
/// </summary>
|
||||||
Track
|
Track
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,19 +5,30 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
/// <summary>Represents and identifier for an external provider.</summary>
|
/// <summary>Represents and identifier for an external provider.</summary>
|
||||||
public interface IExternalId
|
public interface IExternalId
|
||||||
{
|
{
|
||||||
/// <summary>Gets the name used to identify this provider</summary>
|
/// <summary>
|
||||||
|
/// Gets the display name of the provider associated with this ID type.
|
||||||
|
/// </summary>
|
||||||
string Name { get; }
|
string Name { get; }
|
||||||
|
|
||||||
/// <summary>Gets the unique key to distinguish this provider/type pair. This should be unique across providers.</summary>
|
/// <summary>
|
||||||
|
/// Gets the unique key to distinguish this provider/type pair. This should be unique across providers.
|
||||||
|
/// </summary>
|
||||||
|
// TODO: This property is not actually unique at the moment. It should be updated to be unique.
|
||||||
string Key { get; }
|
string Key { get; }
|
||||||
|
|
||||||
/// <summary>Gets the specific media type for this id.</summary>
|
/// <summary>
|
||||||
|
/// Gets the specific media type for this id.
|
||||||
|
/// </summary>
|
||||||
ExternalIdMediaType Type { get; }
|
ExternalIdMediaType Type { get; }
|
||||||
|
|
||||||
/// <summary>Gets the url format string for this id.</summary>
|
/// <summary>
|
||||||
|
/// Gets the URL format string for this id.
|
||||||
|
/// </summary>
|
||||||
string UrlFormatString { get; }
|
string UrlFormatString { get; }
|
||||||
|
|
||||||
/// <summary>Determines whether this id supports a given item type.</summary>
|
/// <summary>
|
||||||
|
/// Determines whether this id supports a given item type.
|
||||||
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>True if this item is supported, otherwise false.</returns>
|
/// <returns>True if this item is supported, otherwise false.</returns>
|
||||||
bool Supports(IHasProviderIds item);
|
bool Supports(IHasProviderIds item);
|
||||||
|
@ -6,7 +6,7 @@ namespace MediaBrowser.Model.Providers
|
|||||||
public class ExternalIdInfo
|
public class ExternalIdInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name of the external id provider (IE: IMDB, MusicBrainz, etc).
|
/// Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user