using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using xIdentityModels.Models; using xStringService.Models.Dtos; namespace xStringService.Interfaces { public interface IXItemResourceProvider { // #region All Item Actions ... /// /// Retrieve a List of Exists Languages for Current Item ... /// /// /// Task> GetLanguages( CancellationToken cancellationToken = default ); /// /// Retrieve all Exists Items of type ... /// /// /// Task> GetResourceLocales( CancellationToken cancellationToken = default ); #endregion // #region Single Item Actions ... /// /// Retrieve a List of Exists Languages for Current Item ... /// /// /// /// Task> GetLanguages( object identifier, CancellationToken cancellationToken = default ); /// /// Retrieve all Exists Items of type ... /// /// /// /// Task> GetResourceLocales( object identifier, CancellationToken cancellationToken = default ); Task AddOrUpdateItemResourcer( object identifier, string language, string translation, string connectionId = null, XUserClaimsInfoDto userInfo = null, CancellationToken cancellationToken = default ); #endregion } }