using System;
using System.Collections.Generic;
namespace MediaBrowser.Controller.Library
{
    /// 
    /// Class TVUtils
    /// 
    public static class TVUtils
    {
        /// 
        /// The TVDB API key
        /// 
        public static readonly string TvdbApiKey = "B89CE93890E9419B";
        public static readonly string TvdbBaseUrl = "https://www.thetvdb.com/";
        /// 
        /// The banner URL
        /// 
        public static readonly string BannerUrl = TvdbBaseUrl + "banners/";
        /// 
        /// Gets the air days.
        /// 
        /// The day.
        /// List{DayOfWeek}.
        public static DayOfWeek[] GetAirDays(string day)
        {
            if (!string.IsNullOrEmpty(day))
            {
                if (string.Equals(day, "Daily", StringComparison.OrdinalIgnoreCase))
                {
                    return new DayOfWeek[]
                               {
                                   DayOfWeek.Sunday,
                                   DayOfWeek.Monday,
                                   DayOfWeek.Tuesday,
                                   DayOfWeek.Wednesday,
                                   DayOfWeek.Thursday,
                                   DayOfWeek.Friday,
                                   DayOfWeek.Saturday
                               };
                }
                DayOfWeek value;
                if (Enum.TryParse(day, true, out value))
                {
                    return new DayOfWeek[]
                               {
                                   value
                               };
                }
                return new DayOfWeek[]{};
            }
            return null;
        }
    }
}