public UserRepositoriesPageViewModel(IRepoHostingClient repohostingClient, IMapper mapper) { _repoHostClient = repohostingClient; _mapper = mapper; RepositoryList = new ObservableCollection <RepositoryViewModel>(); OnAppearingCommand = new RelayCommand(async() => await HandleOnAppearing()); }
public HomePageViewModel(IRepoHostingClient repoHostClient, IMapper mapper, ILogger logger) { SearchCommand = new RelayCommand <string>(async param => await ExecuteUserSearch(param)); ClickableTextCommand = new RelayCommand(async() => await ExecuteClickableTextTap()); UserSelectionChangeCommand = new RelayCommand <UserViewModel>(async param => await ExecuteUserSelection(param)); UserList = new ObservableCollection <UserViewModel>(); this._repoHostClient = repoHostClient; this._mapper = mapper; _logger = logger; SearchStatusText = AppResources.HomePage_InitiailSearchString; ClickableText = AppResources.Sample_User; }