Esempio n. 1
0
        /// <summary>
        /// Checks if the key is only as specific as having a time set. (i.e not location or day specific)
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static bool IsKeyTimeSpecific(string key)
        {
            SongKeyType type = GetKeySpecificity(key);

            if (type == SongKeyType.Time)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
        public static bool IsKeyGeneric(string key)
        {
            SongKeyType type = GetKeySpecificity(key);

            if (type == SongKeyType.Weather || type == SongKeyType.Seasonal)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 3
0
        /// <summary>
        /// Checks if the key used is associated with playing at certain times.
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static bool IsKeyTimeSensitive(string key)
        {
            SongKeyType type = GetKeySpecificity(key);

            if (type == SongKeyType.Location || type == SongKeyType.DayOfWeek || type == SongKeyType.Time)
            {
                return(true);
            }
            return(false);
        }