BlazorStart/Start/Client/Store/Features/DeleteGroup/DeleteGroupState.cs

26 lines
946 B
C#
Raw Permalink Normal View History

2021-12-14 00:27:13 +00:00
using Start.Client.Store.State;
2021-12-11 21:56:35 +00:00
namespace Start.Client.Store.Features.DeleteGroup {
2021-12-14 00:27:13 +00:00
public record DeleteGroupState : RootState {
2021-12-11 21:56:35 +00:00
public bool ShowDeleteGroupForm { get; init; }
public int BookmarkGroupIdToDelete { get; init; }
public string BookmarkGroupTitleToDelete { get; init; }
public bool IsLoadingDeleteGroup { get; init; }
public string? DeleteGroupErrorMessage { get; init; }
public DeleteGroupState() {
this.BookmarkGroupTitleToDelete = "";
}
public DeleteGroupState(bool showDeleteGroupForm, int bookmarkGroupIdToDelete,
string bookmarkTitleToDelete, bool isLoadingDeleteGroup,
string? deleteGroupErrorMessage) {
this.ShowDeleteGroupForm = showDeleteGroupForm;
this.BookmarkGroupIdToDelete = bookmarkGroupIdToDelete;
this.BookmarkGroupTitleToDelete = bookmarkTitleToDelete;
this.IsLoadingDeleteGroup = isLoadingDeleteGroup;
this.DeleteGroupErrorMessage = deleteGroupErrorMessage;
}
}
}