示例#1
0
        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);
        }
示例#3
0
        public FollowersListViewModel(IProfileEndpoint profileEndpoint, IProfile profile, IEventAggregator events,
                                      IMapper mapper)
        {
            _profileEndpoint = profileEndpoint;
            _profile         = profile;
            _events          = events;
            _mapper          = mapper;

            _pagination = new PaginationHelper();

            _events.SubscribeOnPublishedThread(this);
        }
示例#4
0
        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);
        }
示例#5
0
 public AddPhotoViewModel(IProfileEndpoint profile, IEventAggregator events)
 {
     _profile = profile;
     _events  = events;
 }