BlazorStart/Start/Client/Store/Features/DeleteBookmark/DeleteBookmarkState.cs
2021-12-16 10:46:22 -08:00

22 lines
809 B
C#

using Start.Client.Store.State;
using Start.Shared;
namespace Start.Client.Store.Features.DeleteBookmark {
public record DeleteBookmarkState : RootState {
public bool ShowDeleteBookmarkForm { get; init; }
public BookmarkDto? BookmarkToDelete { get; init; }
public bool IsLoadingDeleteBookmark { get; init; }
public string? DeleteBookmarkErrorMessage { get; init; }
public DeleteBookmarkState() { }
public DeleteBookmarkState(bool showDeleteBookmarkForm, BookmarkDto bookmarkToDelete,
bool isLoadingDeleteBookmark, string? deleteBookmarkErrorMessage) {
this.ShowDeleteBookmarkForm = showDeleteBookmarkForm;
this.BookmarkToDelete = bookmarkToDelete;
this.IsLoadingDeleteBookmark = isLoadingDeleteBookmark;
this.DeleteBookmarkErrorMessage = deleteBookmarkErrorMessage;
}
}
}