BlazorStart/Start/Client/Store/Features/DeleteContainer/DeleteContainerState.cs

29 lines
1.1 KiB
C#
Raw Permalink Normal View History

2021-12-04 00:44:02 +00:00
using Start.Client.Store.State;
namespace Start.Client.Store.Features.DeleteContainer {
public record DeleteContainerState : RootState {
public bool ShowDeleteContainerForm { get; set; }
public int BookmarkContainerIdToDelete { get; set; }
public string BookmarkContainerTitleToDelete { get; set; }
public bool IsLoadingDeleteContainer { get; set; }
public string? DeleteContainerErrorMessage { get; set; }
public DeleteContainerState() {
this.BookmarkContainerIdToDelete = 0;
this.BookmarkContainerTitleToDelete = "";
}
public DeleteContainerState(ContainerListState containerList,
CurrentContainerState currentContainer, bool showDeleteContainerForm,
int containerIdToDelete, string containerTitleToDelete, bool isLoadingDeleteContainer,
string? errorMessage)
: base(containerList, currentContainer) {
this.ShowDeleteContainerForm = showDeleteContainerForm;
this.BookmarkContainerIdToDelete = containerIdToDelete;
this.BookmarkContainerTitleToDelete = containerTitleToDelete;
this.IsLoadingDeleteContainer = isLoadingDeleteContainer;
this.DeleteContainerErrorMessage = errorMessage;
}
}
}