public PaylikeClient(HttpClient httpClient, string privateKey = null, ILogger <PaylikeClient> logger = null) { _httpClient = httpClient ?? throw new NullReferenceException(nameof(httpClient)); _httpClient.BaseAddress = new Uri("https://api.paylike.io/"); if (logger != null) { _logger = logger; } if (privateKey != null) { SetPrivateKeyForRequests(privateKey); } _transactions = new TransactionsClient(this); _payouts = new PayoutsClient(this); _transfers = new TransfersClient(this); _cards = new CardsClient(this); _jsonSettings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver(), NullValueHandling = NullValueHandling.Ignore }; _jsonSerializer = new JsonSerializer() { ContractResolver = new CamelCasePropertyNamesContractResolver(), NullValueHandling = NullValueHandling.Ignore }; }
public SyncBoardGamesActionHandler(IBoardGameEventService boardGameEventService, ITrelloServiceFactory trelloServiceFactory, ICardsClient cardsClient) { this.boardGameEventService = boardGameEventService; this.trelloServiceFactory = trelloServiceFactory; this.cardsClient = cardsClient; }
public LogActionHandler( ITrelloServiceFactory trelloServiceFactory, ICardsClient cardsClient, IConsole console) { this.trelloServiceFactory = trelloServiceFactory; this.cardsClient = cardsClient; this.console = console; }
public PlanningActionHandler( IBoardsService boardsService, ICardFilterFactory cardFilterFactory, IPlanningCreator planningCreator, ICardsClient cardsClient, IConsole console, WeeklyGoalsPluginSettings configuation) { this.boardsService = boardsService; this.cardFilterFactory = cardFilterFactory; this.planningCreator = planningCreator; this.cardsClient = cardsClient; this.console = console; this.configuation = configuation; }
public AutoRenamerActionHandler( IBoardsService boardsService, ICardFilterFactory cardFilterFactory, IDatePatternResolver datePatternResolver, ICardsClient cardsClient, IConsole console, WeeklyGoalsPluginSettings configuation) { this.boardsService = boardsService; this.cardFilterFactory = cardFilterFactory; this.datePatternResolver = datePatternResolver; this.cardsClient = cardsClient; this.console = console; this.configuation = configuation; }
public CardsController(ICardsClient cardsClient) { _cardsClient = cardsClient; }
public CardsController(ICardsClient client) { _client = client; }