Exemple #1
0
        /// <summary>
        /// Tests whether there is any reservation which overlaps the specified time interval.
        /// </summary>
        /// <param name="startTime">start time to test</param>
        /// <param name="endTime">end time to test</param>
        /// <returns>true if there is any reservation which overlaps the specified time interval</returns>
        public bool IsReserved(long startTime, long endTime)
        {
            if (startTime > endTime)
            {
                return(false);
            }

            if (_rset.Intersects((int)startTime, (int)endTime))
            {
                return(true);
            }

            return(false);
        }