Skip to content

PostVmImpl

Namespace: SlottyMedia.Backend.ViewModel.Partial.Post

ViewModel for Post

public class PostVmImpl : IPostVm

Inheritance ObjectPostVmImpl
Implements IPostVm

Properties

AuthPrincipalId

public Nullable<Guid> AuthPrincipalId { get; private set; }

Property Value

Nullable<Guid>

IsPostLiked

public bool IsPostLiked { get; private set; }

Property Value

Boolean

IsLoading

public bool IsLoading { get; private set; }

Property Value

Boolean

PostDto

public PostDto PostDto { get; private set; }

Property Value

PostDto

CommentCount

public int CommentCount { get; private set; }

Property Value

Int32

LikeCount

public int LikeCount { get; private set; }

Property Value

Int32

UserInformation

public UserInformationDto UserInformation { get; private set; }

Property Value

UserInformationDto

Constructors

PostVmImpl(IPostService, IUserService, ILikeService, ICommentService, IAuthService, NavigationManager)

The constructor for PostVmImpl

public PostVmImpl(IPostService postService, IUserService userService, ILikeService likeService, ICommentService commentService, IAuthService authService, NavigationManager navigationManager)

Parameters

postService IPostService

userService IUserService

likeService ILikeService

commentService ICommentService

authService IAuthService

navigationManager NavigationManager

Methods

Initialize(Guid, Action)

public Task Initialize(Guid postId, Action onStateChanged)

Parameters

postId Guid

onStateChanged Action

Returns

Task

LikeThisPost()

public Task LikeThisPost()

Returns

Task

GoToPostPage()

public void GoToPostPage()

GoToProfilePage()

public void GoToProfilePage()