public SubredditPageViewModel(ITokenRequest tokenRequest, ITokensContainer tokesContainer, ILinkService linkService, ISubredditService subredditService) { m_tokenRequest = tokenRequest; m_tokesContainer = tokesContainer; m_linkService = linkService; m_subredditService = subredditService; CurrentSubreddit = "askreddit"; NextLinksCommand = new AsyncCommand(async() => await GetLinks(), () => !m_isLoading); NewSubredditCommand = new AsyncCommand <ISubredditViewModel>(NewSubreddit); }
public HttpClientWrapper(ITokensContainer tokensContainer) { m_tokensContainer = tokensContainer; m_actualHttpClient = new HttpClient(); }