#nullable disable
#pragma warning disable CS1591
using System.Collections.Generic;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Entities
{
    public interface IHasTrailers : IHasProviderIds
    {
        /// 
        /// Gets or sets the remote trailers.
        /// 
        /// The remote trailers.
        IReadOnlyList RemoteTrailers { get; set; }
        /// 
        /// Gets the local trailers.
        /// 
        /// The local trailers.
        IReadOnlyList LocalTrailers { get; }
    }
    /// 
    /// Class providing extension methods for working with .
    /// 
    public static class HasTrailerExtensions
    {
        /// 
        /// Gets the trailer count.
        /// 
        /// Media item.
        /// .
        public static int GetTrailerCount(this IHasTrailers item)
            => item.LocalTrailers.Count + item.RemoteTrailers.Count;
    }
}