using System;
using System.Collections.Generic;
using System.Linq;
namespace MediaBrowser.Controller.Entities
{
    /// 
    /// Interface IHasTaglines
    /// 
    public interface IHasTaglines
    {
        /// 
        /// Gets or sets the taglines.
        /// 
        /// The taglines.
        List Taglines { get; set; }
    }
    public static class TaglineExtensions
    {
        /// 
        /// Adds the tagline.
        /// 
        /// The tagline.
        /// tagline
        public static void AddTagline(this IHasTaglines item, string tagline)
        {
            if (string.IsNullOrWhiteSpace(tagline))
            {
                throw new ArgumentNullException("tagline");
            }
            if (!item.Taglines.Contains(tagline, StringComparer.OrdinalIgnoreCase))
            {
                item.Taglines.Add(tagline);
            }
        }
    }
}