using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DTO; using Dto2Entities; using Entity; using Shared; namespace ServicesApi { public class QuoteService : IQuoteService { private IQuoteService quoteService; public QuoteService(IQuoteService quote) { quoteService = quote; } public async Task AddQuote(QuoteDTO quote) { await quoteService.AddQuote(quote.ToEntity()); } public async Task> GetAllQuote() { throw new NotImplementedException(); } public async Task> GetAllQuoteLang(int index, int pageSize, int lang) { throw new NotImplementedException(); } public async Task GetDailyQuote(DateOnly date, int lang) { return quoteService.GetDailyQuote(date, lang).Result.ToDto(); } public async Task> GetFavorites(int index, int pageSize, int UserId) { throw new NotImplementedException(); } public async Task> GetInvalidQuote(int index, int pageSize, int lang) { throw new NotImplementedException(); } public async Task> GetInvalidQuote(int index, int pageSize) { throw new NotImplementedException(); } public async Task GetLastQuoteId() { return await quoteService.GetLastQuoteId(); } public async Task GetQuoteById(int id) { return quoteService.GetQuoteById(id).Result.ToDto(); } public async Task> GetSomeQuote(int index, int pageSize) { throw new NotImplementedException(); } public async Task> GetSuggestions(int index, int pageSize, int lang) { throw new NotImplementedException(); } public async Task> GetValidQuote(int index, int pageSize) { throw new NotImplementedException(); } public async Task RemoveQuote(int quoteId) { await quoteService.RemoveQuote(quoteId); } public async Task> SearchByCharacter(string character, int index, int pageSize, int lang) { throw new NotImplementedException(); } public async Task> SearchByContent(string content, int index, int pageSize, int lang) { throw new NotImplementedException(); } public async Task> SearchBySource(string source, int index, int pageSize, int lang) { throw new NotImplementedException(); } public async Task UpdateQuote(int quoteId, QuoteDTO quote) { await quoteService.UpdateQuote(quoteId, quote.ToEntity()); } public async Task ValidateQuote(int quoteId, bool isValidate) { await quoteService.ValidateQuote(quoteId, isValidate); } } }