public ApiFactory(IApiChannels apiChannels, IApiMonths apiMonths, IApiDays apiDays, IApiLogs apiLogs, IApiUserlogs apiUserlogs, IApiMentions apiMentions) { _apiChannels = apiChannels; _apiMonths = apiMonths; _apiDays = apiDays; _apiLogs = apiLogs; _apiUserlogs = apiUserlogs; _apiMentions = apiMentions; }
public UserlogsViewModel(Action <string, string> changeTitle, IApiUserlogs apiUserlogs, CurrentState currentState) { _apiUserlogs = apiUserlogs; _currentState = currentState; RefreshUsersCommand = new ActionCommand(async() => await GetUsers()); OpenUserlogCommand = new ActionCommand(u => OpenLog((UserModel)u)); changeTitle(_currentState.Channel.Name, _currentState.Month.Name + "/userlogs"); if (_currentState.Month.Users != null) { UsersList = _currentState.Month.Users; return; } GetUsers().ConfigureAwait(false); }