Esempio n. 1
0
        /// <summary>
        /// Remove the matching tracks from the tracklist.
        /// </summary>
        /// <param name="tlId">one or more rules to match by</param>
        /// <returns></returns>
        public static Task <(bool Succeeded, TlTrack[] Result)> Remove(
            int tlId
            )
        {
            var criteria = new Criteria();

            criteria.TlId.Add((int)tlId);

            return(Tracklist.Remove(criteria));
        }
Esempio n. 2
0
        /// <summary>
        /// Remove the matching tracks from the tracklist.
        /// </summary>
        /// <param name="uri">one or more rules to match by</param>
        /// <returns></returns>
        public static Task <(bool Succeeded, TlTrack[] Result)> Remove(
            string uri
            )
        {
            var criteria = new Criteria();

            if (uri != null)
            {
                criteria.Uri.Add(uri);
            }

            return(Tracklist.Remove(criteria));
        }
Esempio n. 3
0
        /// <summary>
        /// Remove the matching tracks from the tracklist.
        /// </summary>
        /// <param name="tlId">one or more rules to match by</param>
        /// <returns></returns>
        public static Task <(bool Succeeded, TlTrack[] Result)> Remove(
            int[] tlId
            )
        {
            var criteria = new Criteria();

            if (tlId != null && 0 < tlId.Length)
            {
                criteria.TlId.AddRange(tlId);
            }

            return(Tracklist.Remove(criteria));
        }