26 lines
946 B
C#
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;
|
|
}
|
|
}
|
|
}
|