Skip to content

ProfilePageVmImpl

Namespace: SlottyMedia.Backend.ViewModel.Pages.Profile

Viewmodel used for the profile page /profile?id=..

public class ProfilePageVmImpl : IProfilePageVm

Inheritance ObjectProfilePageVmImpl
Implements IProfilePageVm

Properties

IsLoadingPage

public bool IsLoadingPage { get; private set; }

Property Value

Boolean

IsLoadingPosts

public bool IsLoadingPosts { get; private set; }

Property Value

Boolean

IsUserFollowed

public bool IsUserFollowed { get; private set; }

Property Value

Boolean

IsOwnProfilePage

public bool IsOwnProfilePage { get; private set; }

Property Value

Boolean

AuthPrincipalId

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

Property Value

Nullable<Guid>

UserInfo

public UserInformationDto UserInfo { get; private set; }

Property Value

UserInformationDto

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

Task

LoadPosts(Int32)

public Task LoadPosts(int pageNumber)

Parameters

pageNumber Int32

Returns

Task

FollowThisUser()

public Task FollowThisUser()

Returns

Task

UnfollowThisUser()

public Task UnfollowThisUser()

Returns

Task

OnAvatarClick(String)

public Task OnAvatarClick(string imgB64)

Parameters

imgB64 String

Returns

Task

OnDescriptionUpdate(String)

public Task OnDescriptionUpdate(string description)

Parameters

description String

Returns

Task