PostSubmissionFormVmImpl
Namespace: SlottyMedia.Backend.ViewModel.Partial.MainLayout
public class PostSubmissionFormVmImpl : IPostSubmissionFormVm
Inheritance Object → PostSubmissionFormVmImpl
Implements IPostSubmissionFormVm
Properties
Text
public string Text { get; set; }
Property Value
TextErrorMessage
public string TextErrorMessage { get; set; }
Property Value
SpacePrompt
public string SpacePrompt { get; set; }
Property Value
SpaceName
public string SpaceName { get; set; }
Property Value
SearchedSpaces
public List<string> SearchedSpaces { get; set; }
Property Value
SpaceErrorMessage
public string SpaceErrorMessage { get; set; }
Property Value
ServerErrorMessage
public string ServerErrorMessage { get; set; }
Property Value
UserInformation
public UserInformationDto UserInformation { get; set; }
Property Value
IsLoading
public bool IsLoading { get; set; }
Property Value
Constructors
PostSubmissionFormVmImpl(IAuthService, IPostService, IForumService, ISearchService, NavigationManager, IUserService)
Ctor used for dep inject
public PostSubmissionFormVmImpl(IAuthService authService, IPostService postService, IForumService forumService, ISearchService searchService, NavigationManager navigationManager, IUserService userService)
Parameters
authService IAuthService
postService IPostService
forumService IForumService
searchService ISearchService
navigationManager NavigationManager
userService IUserService
Methods
HandleSpacePromptChange(ChangeEventArgs, EventCallback<String>)
public Task HandleSpacePromptChange(ChangeEventArgs e, EventCallback<string> promptValueChanged)
Parameters
e ChangeEventArgs
promptValueChanged EventCallback<String>
Returns
HandleSpaceSelection(String)
public void HandleSpaceSelection(string spaceName)
Parameters
spaceName String
HandleSpaceDeselection()
public void HandleSpaceDeselection()
SubmitForm()
public Task SubmitForm()
Returns
Initialize(Nullable<Guid>)
public Task Initialize(Nullable<Guid> userId)
Parameters
userId Nullable<Guid>