using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Entities;
using System;
namespace MediaBrowser.Controller.Entities
{
public class MusicVideo : Video, IHasArtist, IHasMusicGenres, IHasBudget
{
///
/// Gets or sets the artist.
///
/// The artist.
public string Artist { get; set; }
///
/// Gets or sets the album.
///
/// The album.
public string Album { get; set; }
///
/// Gets or sets the budget.
///
/// The budget.
public double? Budget { get; set; }
///
/// Gets or sets the revenue.
///
/// The revenue.
public double? Revenue { get; set; }
///
/// Determines whether the specified name has artist.
///
/// The name.
/// true if the specified name has artist; otherwise, false.
public bool HasArtist(string name)
{
return string.Equals(Artist, name, StringComparison.OrdinalIgnoreCase);
}
///
/// Gets the user data key.
///
/// System.String.
public override string GetUserDataKey()
{
return this.GetProviderId(MetadataProviders.Tmdb) ?? this.GetProviderId(MetadataProviders.Imdb) ?? base.GetUserDataKey();
}
protected override bool GetBlockUnratedValue(UserConfiguration config)
{
return config.BlockUnratedMusic;
}
}
}