public LeanKitIntegration(long boardId, ILeanKitApi apiClient, IntegrationSettings settings)
 {
     _integrationSettings = settings;
     _boardId             = boardId;
     _api           = apiClient;
     ShouldContinue = true;
 }
		public LeanKitIntegration(long boardId, ILeanKitApi apiClient, IntegrationSettings settings)
		{
			_integrationSettings = settings;
			_boardId = boardId;
			_api = apiClient;
			ShouldContinue = true;
		}
        public RestSharpCommandProcessor(IValidationService validationService, IntegrationSettings settings)
        {
            var version = Assembly.GetExecutingAssembly().GetName().Version;

            _leanKitUserAgent += "/" + version;
            _validationService = validationService;
            _settings          = settings;
        }
            internal BoardSubscription(ILeanKitAccountAuth auth, long boardId, int pollingFrequency)
            {
                _boardId = boardId;
				LkClientApi = new LeanKitClientFactory().Create(auth);
	            var settings = new IntegrationSettings {CheckForUpdatesIntervalSeconds = pollingFrequency};
	            Integration = new LeanKitIntegrationFactory().Create(_boardId, auth, settings);

                new Thread(WatchThread).Start();
            }
        public ILeanKitApi Create(ILeanKitAccountAuth accountAuth, string dateFormat)
        {
            var settings = new IntegrationSettings()
            {
                DateFormat = dateFormat
            };
            var leanKitClient = new LeanKitClient(new RestSharpCommandProcessor(new ValidationService(null), settings));

            return(leanKitClient.Initialize(accountAuth));
        }
		public ILeanKitApi Create(ILeanKitAccountAuth accountAuth, string dateFormat)
		{
			var settings = new IntegrationSettings() {DateFormat = dateFormat};
			var leanKitClient = new LeanKitClient(new RestSharpCommandProcessor(new ValidationService(null), settings));
			return leanKitClient.Initialize(accountAuth);
		}
 public RestSharpCommandProcessor(IValidationService validationService, IntegrationSettings settings)
 {
     _validationService = validationService;
     _settings          = settings;
 }
		public ILeanKitIntegration Create(long boardId, LeanKitAccountAuth accountAuth, IntegrationSettings settings)
		{
			var clientFactory = new LeanKitClientFactory();
			var apiClient = clientFactory.Create(accountAuth);
			return new LeanKitIntegration(boardId, apiClient, settings);
		}
        public ILeanKitIntegration Create(long boardId, LeanKitAccountAuth accountAuth, IntegrationSettings settings)
        {
            var clientFactory = new LeanKitClientFactory();
            var apiClient     = clientFactory.Create(accountAuth);

            return(new LeanKitIntegration(boardId, apiClient, settings));
        }