2021-11-28 22:32:21 -08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2021-11-13 17:19:28 -08:00
|
|
|
|
using Start.Server.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Start.Server.Data.Services.Interfaces {
|
|
|
|
|
|
public interface IBookmarkContainerService {
|
2021-11-28 22:32:21 -08:00
|
|
|
|
public Task<BookmarkContainer?> GetBookmarkContainer(string userId,
|
2021-11-13 17:19:28 -08:00
|
|
|
|
int bookmarkContainerId, bool includeGroups = false, bool includeBookmarks = false);
|
2021-11-28 22:32:21 -08:00
|
|
|
|
public Task<IList<BookmarkContainer>> GetUserBookmarkContainers(string userId,
|
2021-11-13 17:19:28 -08:00
|
|
|
|
bool includeGroups = false, bool includeBookmarks = false);
|
|
|
|
|
|
|
2021-11-28 22:32:21 -08:00
|
|
|
|
public Task<BookmarkContainer?> CreateBookmarkContainer(string userId,
|
2021-11-13 17:19:28 -08:00
|
|
|
|
string title);
|
2021-11-28 22:32:21 -08:00
|
|
|
|
public Task<BookmarkContainer?> UpdateBookmarkContainer(string userId,
|
2021-11-13 17:19:28 -08:00
|
|
|
|
BookmarkContainer bookmarkContainer);
|
2021-11-28 22:32:21 -08:00
|
|
|
|
public Task<bool> DeleteBookmarkContainer(string userId, int bookmarkContainerId);
|
2021-11-13 17:19:28 -08:00
|
|
|
|
}
|
|
|
|
|
|
}
|