Skip to content

CommentSubmissionFormVmImpl

Namespace: SlottyMedia.Backend.ViewModel.Partial.PostPage

public class CommentSubmissionFormVmImpl : ICommentSubmissionFormVm

Inheritance ObjectCommentSubmissionFormVmImpl
Implements ICommentSubmissionFormVm

Properties

Text

public string Text { get; set; }

Property Value

String

TextErrorMessage

public string TextErrorMessage { get; private set; }

Property Value

String

ServerErrorMessage

public string ServerErrorMessage { get; private set; }

Property Value

String

UserInformation

public UserInformationDto UserInformation { get; set; }

Property Value

UserInformationDto

IsLoading

public bool IsLoading { get; set; }

Property Value

Boolean

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

Task

Initialize(Nullable<Guid>)

public Task Initialize(Nullable<Guid> userId)

Parameters

userId Nullable<Guid>

Returns

Task