2021-11-29 06:32:21 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-11-13 03:21:59 +00:00
|
|
|
|
using Start.Server.Models;
|
|
|
|
|
|
|
|
|
|
namespace Start.Server.Data.Services.Interfaces {
|
|
|
|
|
public interface IBookmarkService {
|
2021-11-29 06:32:21 +00:00
|
|
|
|
public Task<Bookmark?> GetBookmark(string userId, int bookmarkId);
|
|
|
|
|
public Task<IList<Bookmark>> GetUserBookmarks(string userId);
|
2021-11-13 03:21:59 +00:00
|
|
|
|
|
2021-11-29 06:32:21 +00:00
|
|
|
|
public Task<Bookmark?> CreateBookmark(string userId, string title, string url,
|
2021-11-14 01:19:28 +00:00
|
|
|
|
string? notes, int bookmarkGroupId);
|
2021-11-29 06:32:21 +00:00
|
|
|
|
public Task<Bookmark?> UpdateBookmark(string userId, Bookmark bookmark);
|
|
|
|
|
public Task<bool> DeleteBookmark(string userId, int bookmarkId);
|
2021-11-13 03:21:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|