Inheritance: SettingsBase
Exemplo n.º 1
0
 public JiraAgileService(AssistantSettings configuration, ApplicationCache applicationCache, IJiraServerApi metadataRetriever, IssuesFinder issuesFinder)
    : base(configuration)
 {
    _applicationCache = applicationCache;
    _metadataRetriever = metadataRetriever;
    _issuesFinder = issuesFinder;
 }
Exemplo n.º 2
0
      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()));
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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>();
      }
Exemplo n.º 7
0
 public ResourceDownloader(AssistantSettings configuration)
    : base(configuration)
 {
 }
Exemplo n.º 8
0
 public BaseRestService(AssistantSettings configuration)
 {
    Configuration = configuration;
 }
Exemplo n.º 9
0
 public JiraSessionService(AssistantSettings configuration)
    : base(configuration)
 {
 }
Exemplo n.º 10
0
      public ApplicationCache(AssistantSettings configuration)
      {
         _configuration = configuration;

         _baseCacheDirectory = Path.Combine("Cache", configuration.JiraUrl.GetHashCode().ToString());
      }