using System.Threading.Tasks; using API.Entities; namespace API.Interfaces.Services { public interface IMetadataService { /// /// Recalculates metadata for all entities in a library. /// /// /// void RefreshMetadata(int libraryId, bool forceUpdate = false); public bool UpdateMetadata(Chapter chapter, bool forceUpdate); public bool UpdateMetadata(Volume volume, bool forceUpdate); public bool UpdateMetadata(Series series, bool forceUpdate); /// /// Performs a forced refresh of metatdata just for a series and it's nested entities /// /// /// Task RefreshMetadataForSeries(int libraryId, int seriesId, bool forceUpdate = false); } }