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

25 lines
915 B
C#
Raw Normal View History

2021-12-11 21:56:35 +00:00
using System;
namespace Start.Client.Store.Features.DeleteGroup {
public record DeleteGroupState {
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;
}
}
}