ProfilePageVmImpl
Namespace: SlottyMedia.Backend.ViewModel.Pages.Profile
Viewmodel used for the profile page /profile?id=..
public class ProfilePageVmImpl : IProfilePageVm
Inheritance Object → ProfilePageVmImpl
Implements IProfilePageVm
Properties
IsLoadingPage
public bool IsLoadingPage { get; private set; }
Property Value
IsLoadingPosts
public bool IsLoadingPosts { get; private set; }
Property Value
IsUserFollowed
public bool IsUserFollowed { get; private set; }
Property Value
IsOwnProfilePage
public bool IsOwnProfilePage { get; private set; }
Property Value
AuthPrincipalId
public Nullable<Guid> AuthPrincipalId { get; private set; }
Property Value
UserInfo
public UserInformationDto UserInfo { get; private set; }
Property Value
Posts
public IPage<PostDto> Posts { get; private set; }
Property Value
IPage<PostDto>
Constructors
ProfilePageVmImpl(IUserService, IPostService, IAuthService)
Ctor for dep inject
public ProfilePageVmImpl(IUserService userService, IPostService postService, IAuthService authService)
Parameters
userService IUserService
postService IPostService
authService IAuthService
Methods
Initialize(Guid)
public Task Initialize(Guid userId)
Parameters
userId Guid
Returns
LoadPosts(Int32)
public Task LoadPosts(int pageNumber)
Parameters
pageNumber Int32
Returns
FollowThisUser()
public Task FollowThisUser()
Returns
UnfollowThisUser()
public Task UnfollowThisUser()
Returns
OnAvatarClick(String)
public Task OnAvatarClick(string imgB64)
Parameters
imgB64 String
Returns
OnDescriptionUpdate(String)
public Task OnDescriptionUpdate(string description)
Parameters
description String