BlazorStart/Start/Client/Store/Features/CreateGroup/CreateGroupState.cs

26 lines
913 B
C#
Raw Normal View History

2021-12-05 23:50:48 +00:00
using Start.Client.Store.State;
namespace Start.Client.Store.Features.CreateGroup {
public record CreateGroupState : RootState {
public bool ShowCreateGroupForm { get; init; }
public int ContainerId { get; init; }
public string ContainerTitle { get; init; }
public bool IsLoadingCreateGroup { get; init; }
public string? CreateGroupErrorMessage { get; init; }
public CreateGroupState() {
this.ContainerTitle = "";
}
public CreateGroupState(ContainerListState containerList,
CurrentContainerState currentContainer, bool showCreateGroupForm, string containerTitle,
bool isLoadingCreateGroup, string? createGroupErrorMessage)
: base(containerList, currentContainer) {
this.ShowCreateGroupForm = showCreateGroupForm;
this.ContainerTitle = containerTitle;
this.IsLoadingCreateGroup = isLoadingCreateGroup;
this.CreateGroupErrorMessage = createGroupErrorMessage;
}
}
}