CommentSubmissionFormVmImpl
Namespace: SlottyMedia.Backend.ViewModel.Partial.PostPage
public class CommentSubmissionFormVmImpl : ICommentSubmissionFormVm
Inheritance Object → CommentSubmissionFormVmImpl
Implements ICommentSubmissionFormVm
Properties
Text
public string Text { get; set; }
Property Value
TextErrorMessage
public string TextErrorMessage { get; private set; }
Property Value
ServerErrorMessage
public string ServerErrorMessage { get; private set; }
Property Value
UserInformation
public UserInformationDto UserInformation { get; set; }
Property Value
IsLoading
public bool IsLoading { get; set; }
Property Value
Constructors
CommentSubmissionFormVmImpl(IAuthService, ICommentService, NavigationManager, IUserService)
Instantiates this class
public CommentSubmissionFormVmImpl(IAuthService authService, ICommentService commentService, NavigationManager navigationManager, IUserService userService)
Parameters
authService IAuthService
commentService ICommentService
navigationManager NavigationManager
userService IUserService
Methods
SubmitForm(Guid)
public Task SubmitForm(Guid postId)
Parameters
postId Guid
Returns
Initialize(Nullable<Guid>)
public Task Initialize(Nullable<Guid> userId)
Parameters
userId Nullable<Guid>