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;
 }
Exemplo n.º 2
0
 public DaysViewModel(Action <string, string> changeTitle, IApiDays apiDays, CurrentState currentState)
 {
     RefreshDaysCommand = new ActionCommand(async() => await GetDays());
     OpenDayCommand     = new ActionCommand(d => OpenLog((DayModel)d));
     _apiDays           = apiDays;
     _currentState      = currentState;
     changeTitle(_currentState.Channel.Name, _currentState.Month.Name);
     if (_currentState.Month.Days != null)
     {
         DaysList = _currentState.Month.Days;
         return;
     }
     GetDays().ConfigureAwait(false);
 }