Initial files
This commit is contained in:
commit
691e049103
65 changed files with 4312 additions and 0 deletions
22
Start/Server/Data/Services/Interfaces/IBookmarkService.cs
Normal file
22
Start/Server/Data/Services/Interfaces/IBookmarkService.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Start.Server.Models;
|
||||
|
||||
namespace Start.Server.Data.Services.Interfaces {
|
||||
public interface IBookmarkService {
|
||||
public (BookmarkStatus, Bookmark?) GetBookmark(string userId, int bookmarkId);
|
||||
public IList<Bookmark> GetUserBookmarks(string userId);
|
||||
|
||||
public Bookmark CreateBookmark(string userId, string title, string url, string? notes,
|
||||
int bookmarkGroupId);
|
||||
public (BookmarkStatus, Bookmark?) UpdateBookmark(string userId, Bookmark bookmark);
|
||||
public BookmarkStatus DeleteBookmark(string userId, int bookmarkId);
|
||||
}
|
||||
|
||||
public enum BookmarkStatus {
|
||||
OK = 1,
|
||||
BookmarkDoesNotExist = 2,
|
||||
OwnerDoesNotMatch = 3,
|
||||
UserDoesNotExist = 4
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue