Exemple #1
0
        public void SetUp()
        {
            var session = OfflineDeezerSession.WithAuthentication();

            _user   = session.Library.User;
            _server = session.MessageHandler;
        }
Exemple #2
0
        public void OneTimeSetUp()
        {
            var    deezer = DeezerSession.CreateNew();
            string token  = "frmFoXgyyO1ATzluA6gZIFIoWAf8b8G4tGWHaoxtDN9oCKMghM";

            if (string.IsNullOrEmpty(token))
            {
                throw new NotLoggedInException();
            }

            deezer.Login(token)
            .GetAwaiter().GetResult();

            _user = deezer.User;

            _album = deezer.Browse.GetAlbumById(302127)
                     .GetAwaiter().GetResult();

            _artist = deezer.Browse.GetArtistById(27)
                      .GetAwaiter().GetResult();

            _track = deezer.Browse.GetTrackById(3135556)
                     .GetAwaiter().GetResult();

            _playlist = deezer.Browse.GetPlaylistById(908622995)
                        .GetAwaiter().GetResult();

            _radio = deezer.Browse.GetRadioById(6)
                     .GetAwaiter().GetResult();
        }
Exemple #3
0
 public UserDisplayViewModel(StatusInfoViewModel status, IWindowManager window, IEventAggregator events, IUserEndpoint userEndpoint)
 {
     _status       = status;
     _window       = window;
     _events       = events;
     _userEndpoint = userEndpoint;
 }
Exemple #4
0
        public LoginViewModel(IUserEndpoint userEndpoint, IEventAggregator events)
        {
            _userEndpoint = userEndpoint;
            _events       = events;

            User = new LoginUserFormValues();
        }
        public RegisterViewModel(IUserEndpoint userEndpoint, IEventAggregator events)
        {
            _userEndpoint = userEndpoint;
            _events       = events;

            User = new RegisterUserFormValues();
        }
 public UserDisplayViewModel(StatusInfoViewModel status, IWindowManager window, IUserEndpoint userEndpoint, IMapper mapper)
 {
     _status       = status;
     _window       = window;
     _userEndpoint = userEndpoint;
     _mapper       = mapper;
 }
Exemple #7
0
 public UserDisplayViewModel(StatusInfoViewModel status, IWindowManager window,
                             IUserEndpoint userEndpoint)
 {
     _status       = status;
     _window       = window;
     _userEndpoint = userEndpoint;
 }
 public UserDisplayViewModel(StatusInfoViewModel status,
                             IWindowManager window,
                             IUserEndpoint userEndpoint)
 {
     this.status       = status;
     this.window       = window;
     this.userEndpoint = userEndpoint;
 }
 public UserAddViewModel(IWindowManager window, StatusInfoViewModel status, IEventAggregator events, IUserEndpoint userEndpoint, IAPIHelper apiHelper)
 {
     _window       = window;
     _status       = status;
     _events       = events;
     _userEndpoint = userEndpoint;
     _apiHelper    = apiHelper;
 }
Exemple #10
0
        public BrowseEndpoint(DeezerClient aClient)
        {
            iClient = aClient;

            iGenre        = new GenreEndpoint(iClient);
            iCharts       = new ChartsEndpoint(iClient);
            iUserEndpoint = new UserEndpoint(aClient);
        }
Exemple #11
0
        internal Deezer(DeezerSession aSession)
        {
            iSession = aSession;
            iClient  = new DeezerClient(iSession);

            iBrowse = new BrowseEndpoint(iClient);
            iSearch = new SearchEndpoint(iClient);
            iUser   = new UserEndpoint(iClient);
            iRadio  = new RadioEndpoint(iClient);
        }
Exemple #12
0
        internal Deezer(DeezerSession aSession, HttpMessageHandler httpMessageHandler = null)
        {
            iSession = aSession;
            iClient  = new DeezerClient(iSession, httpMessageHandler);

            iBrowse = new BrowseEndpoint(iClient);
            iSearch = new SearchEndpoint(iClient);
            iUser   = new UserEndpoint(iClient);
            iRadio  = new RadioEndpoint(iClient);
        }
 public DashboardViewModel(IUserEndpoint userEndpoint, IPatientEndpoint patientEndpoint, IPrescriptionEndpoint prescriptionEndpoint, StatusInfoViewModel status, IWindowManager window, IMapper mapper, IEventAggregator events)
 {
     _userEndpoint         = userEndpoint;
     _patientEndpoint      = patientEndpoint;
     _prescriptionEndpoint = prescriptionEndpoint;
     _status = status;
     _window = window;
     _mapper = mapper;
     _events = events;
 }
Exemple #14
0
        internal Deezer(DeezerSession aSession)
        {
            iSession = aSession;
            iClient = new DeezerClient(iSession);

            iBrowse = new BrowseEndpoint(iClient);
            iSearch = new SearchEndpoint(iClient);
            iUser =   new UserEndpoint(iClient);
            iRadio = new RadioEndpoint(iClient);
        }
        public UserMainPageViewModel(IEventAggregator events, IAuthenticatedUser iUser, IProfile profile,
                                     IUserEndpoint userEndpoint, IMapper mapper)
        {
            _events       = events;
            _iUser        = iUser;
            _profile      = profile;
            _userEndpoint = userEndpoint;
            _mapper       = mapper;

            ActivateItemAsync(IoC.Get <PhotosListViewModel>(), new CancellationToken());
        }
Exemple #16
0
        internal Deezer(DeezerSession aSession, HttpMessageHandler httpMessageHandler = null, bool underTest = false)
        {
            iSession = aSession;
            if (underTest)
            {
                iClient = new DeezerClient(iSession, httpMessageHandler, true);
            }
            else
            {
                iClient = new DeezerClient(iSession, httpMessageHandler);
            }


            iBrowse = new BrowseEndpoint(iClient);
            iSearch = new SearchEndpoint(iClient);
            iUser   = new UserEndpoint(iClient);
            iRadio  = new RadioEndpoint(iClient);
        }
Exemple #17
0
        public ScreepsApiClient(string baseUrl, string token)
        {
            this.client = new RestClientWrapper(baseUrl, token);

            this.User = new UserEndpoint(this.client);
        }
 public UsersController(IUserEndpoint userEndpoint)
 {
     _userEndpoint = userEndpoint;
 }
Exemple #19
0
 public UserManagementViewModel(IEventAggregator events, IUserEndpoint userEndpoint)
 {
     _events       = events;
     _userEndpoint = userEndpoint;
     _users        = new BindingList <UserModel>();
 }
 public UserDisplayViewModel(IUserEndpoint userEndPoint)
 {
     this._userEndPoint = userEndPoint;
 }
 public UserDisplayViewModel(IMapper mapper, IUserEndpoint userEndpoint, IDialogWindowHelper dialogWindow)
 {
     _dialogWindow = dialogWindow;
     _mapper       = mapper;
     _userEndpoint = userEndpoint;
 }
 public UserDisplayViewModel(IUserEndpoint userEndpoint, StatusInfoViewModel status, IWindowManager window)
 {
     _userEndpoint = userEndpoint;
     _status       = status;
     _window       = window;
 }