using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { public interface IUserLibraryManager : ILibraryManager { Task>> GetBooksFromCollection(int index, int count, string sort = ""); Task AddBook(Book book); Task AddBook(string id); Task AddBookByIsbn(string isbn); Task RemoveBook(Book book); Task RemoveBook(string id); Task RemoveBookByIsbn(string isbn); Task AddToFavorites(Book book); Task AddToFavorites(string bookId); Task RemoveFromFavorites(Book book); Task RemoveFromFavorites(string bookId); Task UpdateBook(Book updatedBook); Task AddContact(Contact contact); Task RemoveContact(Contact contact); Task LendBook(Book book, Contact contact, DateTime? loanDate); Task GetBackBook(Book book, DateTime? returnedDate); Task BorrowBook(Book book, Contact owner, DateTime? borrowedDate); Task GiveBackBook(Book book, DateTime? returnedDate); Task>> GetCurrentLoans(int index, int count); Task>> GetPastLoans(int index, int count); Task>> GetCurrentBorrowings(int index, int count); Task>> GetPastBorrowings(int index, int count); Task>> GetContacts(int index, int count); } }