Exemple #1
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 #2
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);
        }
Exemple #3
0
        internal DeezerClient(DeezerSession aSession, HttpMessageHandler httpMessageHandler = null, bool isUnderTest = false)
        {
            iSession = aSession;

            if (isUnderTest)
            {
                iExecutor = new ExecutorService("http://localhost:10024", httpMessageHandler);
            }
            else
            {
                iExecutor = new ExecutorService(httpMessageHandler);
            }
        }
Exemple #4
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 #5
0
        internal DeezerClient(DeezerSession aSession)
        {
            iSession = aSession;

            iExecutor = new ExecutorService();
        }
Exemple #6
0
 internal DeezerClient(DeezerSession aSession, HttpMessageHandler httpMessageHandler = null)
 {
     iSession = aSession;
     executor = new ExecutorService(httpMessageHandler);
 }