Пример #1
0
        public AsyncTaskTokenController(
            Button button,
            CardInputWidget cardInputWidget,
            Context context,
            ErrorDialogHandler errorDialogHandler,
            ListViewController outputListController,
            ProgressDialogController progressDialogController,
            string publishableKey)
        {
            mCardInputWidget          = cardInputWidget;
            mContext                  = context;
            mErrorDialogHandler       = errorDialogHandler;
            mPublishableKey           = publishableKey;
            mProgressDialogController = progressDialogController;
            mOutputListController     = outputListController;

            button.Click += (s, e) =>
            {
                SaveCard();
            };
        }
Пример #2
0
        public IntentServiceTokenController(
            AppCompatActivity appCompatActivity,
            Button button,
            CardInputWidget cardInputWidget,
            ErrorDialogHandler errorDialogHandler,
            ListViewController outputListController,
            ProgressDialogController progressDialogController,
            string publishableKey)
        {
            mActivity                 = appCompatActivity;
            mCardInputWidget          = cardInputWidget;
            mErrorDialogHandler       = errorDialogHandler;
            mOutputListViewController = outputListController;
            mProgressDialogController = progressDialogController;
            mPublishableKey           = publishableKey;

            button.Click += (s, e) =>
            {
                SaveCard();
            };
            RegisterBroadcastReceiver();
        }
Пример #3
0
 public RxTokenController(
     Button button,
     CardInputWidget cardInputWidget,
     Context context,
     ErrorDialogHandler errorDialogHandler,
     ListViewController outputListController,
     ProgressDialogController progressDialogController,
     string publishableKey)
 {
     mCardInputWidget          = cardInputWidget;
     mContext                  = context;
     mErrorDialogHandler       = errorDialogHandler;
     mOutputListController     = outputListController;
     mProgressDialogController = progressDialogController;
     mPublishableKey           = publishableKey;
     mCompositeSubscription    = new CompositeDisposable();
     //
     mCompositeSubscription.Add(Disposable.Create(() =>
     {
         SaveCard();
     }));
 }