BlazorStart/Start/Server/Data/Services/Interfaces/IBookmarkGroupService.cs

19 lines
731 B
C#
Raw Normal View History

2022-04-19 20:04:38 +00:00
using System.Collections.Generic;
using System.Threading.Tasks;
2021-11-14 01:19:28 +00:00
using Start.Server.Models;
namespace Start.Server.Data.Services.Interfaces {
public interface IBookmarkGroupService {
public Task<BookmarkGroup?> GetBookmarkGroup(string userId,
2021-11-14 01:19:28 +00:00
int bookmarkGroupId, bool includeBookmarks = false);
public Task<IList<BookmarkGroup>> GetUserBookmarkGroups(string userId,
2021-11-14 01:19:28 +00:00
bool includeBookmarks = false);
public Task<BookmarkGroup?> CreateBookmarkGroup(string userId, string title,
2022-04-19 20:04:38 +00:00
string color, int sortOrder, int bookmarkContainerId);
public Task<BookmarkGroup?> UpdateBookmarkGroup(string userId,
2021-11-14 01:19:28 +00:00
BookmarkGroup bookmarkGroup);
public Task<bool> DeleteBookmarkGroup(string userId, int bookmarkGroupId);
2021-11-14 01:19:28 +00:00
}
}