Ejemplo n.º 1
0
        public TrelloAuthorizationWrapper(ITrelloAuthModel authModel)
        {
            if (string.IsNullOrEmpty(authModel.TrelloAPIKey) || string.IsNullOrEmpty(authModel.TrelloUserToken))
            {
                throw new ArgumentNullException();
            }

            _authModel = authModel;

            TrelloAuthorization.Default.AppKey    = _authModel.TrelloAPIKey;
            TrelloAuthorization.Default.UserToken = _authModel.TrelloUserToken;
        }
Ejemplo n.º 2
0
 public bool IsValidKeys(ITrelloAuthModel authModel)
 {
     return(authModel.TrelloAPIKey.Equals(_authModel.TrelloAPIKey) && authModel.TrelloUserToken.Equals(_authModel.TrelloUserToken));
 }
Ejemplo n.º 3
0
 public WebHookCaller(ILogFactory logFactory, ITrelloAuthModel authModel)
 {
     _logger    = logFactory.GetLogger(GetType());
     _authModel = authModel;
 }