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); }
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); }
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); } }
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); }
internal DeezerClient(DeezerSession aSession) { iSession = aSession; iExecutor = new ExecutorService(); }
internal DeezerClient(DeezerSession aSession, HttpMessageHandler httpMessageHandler = null) { iSession = aSession; executor = new ExecutorService(httpMessageHandler); }