public void Init() { UserRequest = new UsersEndpoint(TokenManager); var user = UserRequest.GetUser(); ProfileRequest = new ProfileEndpoint(TokenManager, user); }
public UserProfilePageViewModel(IEventAggregator events, IAuthenticatedUser user, IProfileEndpoint profileEndpoint, IProfile iProfile, IMapper mapper) { _events = events; _user = user; _profileEndpoint = profileEndpoint; _iProfile = iProfile; _mapper = mapper; _events.SubscribeOnPublishedThread(this); }
public FollowersListViewModel(IProfileEndpoint profileEndpoint, IProfile profile, IEventAggregator events, IMapper mapper) { _profileEndpoint = profileEndpoint; _profile = profile; _events = events; _mapper = mapper; _pagination = new PaginationHelper(); _events.SubscribeOnPublishedThread(this); }
public PhotosListViewModel(IProfileEndpoint profileEndpoint, IEventAggregator events, IProfile profile, IAuthenticatedUser user, IPhoto photo, IMapper mapper) { _profileEndpoint = profileEndpoint; _events = events; _profile = profile; _user = user; _photo = photo; _mapper = mapper; _pagination = new PaginationHelper(); events.SubscribeOnPublishedThread(this); }
public AddPhotoViewModel(IProfileEndpoint profile, IEventAggregator events) { _profile = profile; _events = events; }