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

21 lines
750 B
C#
Raw Normal View History

2021-11-14 01:19:28 +00:00
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
2021-11-14 01:19:28 +00:00
using Start.Server.Models;
2021-11-16 05:53:19 +00:00
using Start.Shared;
2021-11-14 01:19:28 +00:00
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,
2021-11-14 01:19:28 +00:00
string color, 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
}
}