BlazorStart/Start/Client/Store/Features/DeleteGroup/DeleteGroupState.cs
2021-12-13 16:27:13 -08:00

26 lines
946 B
C#

using Start.Client.Store.State;
namespace Start.Client.Store.Features.DeleteGroup {
public record DeleteGroupState : RootState {
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;
}
}
}