public JiraAgileService(AssistantSettings configuration, ApplicationCache applicationCache, IJiraServerApi metadataRetriever, IssuesFinder issuesFinder) : base(configuration) { _applicationCache = applicationCache; _metadataRetriever = metadataRetriever; _issuesFinder = issuesFinder; }
public JiraApi(AssistantSettings configuration, ApplicationCache applicationCache) { _resourceDownloader = new ResourceDownloader(configuration); Session = new JiraSessionService(configuration); Server = new MetadataRetriever(configuration); _issuesFinder = new IssuesFinder(configuration, Server); Agile = new JiraAgileService(configuration, applicationCache, Server, _issuesFinder); Worklog = new WorklogManager(configuration); }
public AgileBoardSelectViewModel(IMessenger messenger, AssistantSettings settings, IJiraApi jiraApi) { _messenger = messenger; _jiraApi = jiraApi; _settings = settings; Boards = new ObservableCollection<RawAgileBoard>(); RecentBoards = new ObservableCollection<RawAgileBoard>(); OpenBoardCommand = new RelayCommand<RawAgileBoard>(OpenBoard); OpenSettingsCommand = new RelayCommand(() => _messenger.Send(new OpenSettingsMessage())); }
public JiraSessionViewModel(AssistantSettings configuration, IMessenger messenger, IJiraApi jiraApi) { _jiraApi = jiraApi; _configuration = configuration; _messenger = messenger; _jiraApi.Session.OnLogout += (sender, args) => LoggedOut(); _jiraApi.Session.OnSuccessfulLogin += (sender, args) => LoggedIn(); }
public LoginPageViewModel(IMessenger messenger, JiraSessionViewModel jiraSession, IJiraApi jiraApi, AssistantSettings configuration) { _messenger = messenger; _jiraSession = jiraSession; _jiraApi = jiraApi; JiraAddress = configuration.JiraUrl; Username = configuration.Username; }
public BoardGraveyardViewModel(IList<JiraIssue> issues, IMessenger messenger, AssistantSettings appSettings, GraveyardSettings graveyardSettings) { Issues = issues; _messenger = messenger; _graveyardSettings = graveyardSettings; _graveyardSettings.PropertyChanged += (sender, args) => _reloadNeeded = true; _appSettings = appSettings; OpenDetailsCommand = new RelayCommand<JiraIssue>(issue => _messenger.Send(new OpenIssueDetailsMessage(issue))); OpenInBrowserCommand = new RelayCommand<JiraIssue>(issue => Process.Start(string.Format("{0}/browse/{1}", _appSettings.JiraUrl, issue.Key))); OldCreated = new ObservableCollection<JiraIssue>(); ArchaicCreated = new ObservableCollection<JiraIssue>(); OldUpdated = new ObservableCollection<JiraIssue>(); InactiveAssignee = new ObservableCollection<JiraIssue>(); MissingDescription = new ObservableCollection<JiraIssue>(); }
public ResourceDownloader(AssistantSettings configuration) : base(configuration) { }
public BaseRestService(AssistantSettings configuration) { Configuration = configuration; }
public JiraSessionService(AssistantSettings configuration) : base(configuration) { }
public ApplicationCache(AssistantSettings configuration) { _configuration = configuration; _baseCacheDirectory = Path.Combine("Cache", configuration.JiraUrl.GetHashCode().ToString()); }