using MediaBrowser.Controller.Library; using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace MediaBrowser.Controller.Entities { /// /// Interface IHasMetadata /// public interface IHasMetadata : IHasImages { /// /// Gets the preferred metadata country code. /// /// System.String. string GetPreferredMetadataCountryCode(); /// /// Gets the date modified. /// /// The date modified. DateTime DateModified { get; } /// /// Gets the locked fields. /// /// The locked fields. List LockedFields { get; } /// /// Gets or sets the date last saved. /// /// The date last saved. DateTime DateLastSaved { get; set; } /// /// Gets a value indicating whether this instance is in mixed folder. /// /// true if this instance is in mixed folder; otherwise, false. bool IsInMixedFolder { get; } /// /// Updates to repository. /// /// The update reason. /// The cancellation token. /// Task. Task UpdateToRepository(ItemUpdateType updateReason, CancellationToken cancellationToken); /// /// This is called before any metadata refresh and returns ItemUpdateType indictating if changes were made, and what. /// /// ItemUpdateType. ItemUpdateType BeforeMetadataRefresh(); } }