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

36 lines
889 B
C#

using Start.Shared;
namespace Start.Client.Store.Features.CreateBookmark {
public class ShowCreateBookmarkFormAction {
public int GroupId { get; init; }
public string GroupTitle { get; init; }
public ShowCreateBookmarkFormAction(int groupId, string groupTitle) {
this.GroupId = groupId;
this.GroupTitle = groupTitle;
}
}
public class HideCreateBookmarkFormAction { }
public class FetchCreateBookmarkAction { }
public class ReceivedCreateBookmarkAction { }
public class ErrorFetchingCreateBookmarkAction {
public string ErrorMessage { get; init; }
public ErrorFetchingCreateBookmarkAction(string errorMessage) {
this.ErrorMessage = errorMessage;
}
}
public class SubmitCreateBookmarkAction {
public BookmarkDto NewBookmark { get; init; }
public SubmitCreateBookmarkAction(BookmarkDto newBookmark) {
this.NewBookmark = newBookmark;
}
}
}