Example #1
0
 public MastodonPresenter(IMastodonRegisterClient registerClient,
                          IMastodonAuthorizeAccountWithCode authorizeAccountWithCode, IMastodonGetAccountInfo getAccountInfo,
                          IMakeMastodonConnection connection)
 {
     _registerClient           = registerClient;
     _authorizeAccountWithCode = authorizeAccountWithCode;
     _getAccountInfo           = getAccountInfo;
     _connection = connection;
 }
Example #2
0
 public AccountConnectionSwitcher(IMastodonAccountRepository mastodonAccountRepository,
                                  IMisskeyAccountRepository misskeyAccountRepository, IConnectionRepository connectionRepository,
                                  IMakeMastodonConnection makeMastodonConnection, IMakeMisskeyConnection makeMisskeyConnection)
 {
     _mastodonAccountRepository = mastodonAccountRepository;
     _misskeyAccountRepository  = misskeyAccountRepository;
     _connectionRepository      = connectionRepository;
     _makeMastodonConnection    = makeMastodonConnection;
     _makeMisskeyConnection     = makeMisskeyConnection;
 }
 public AccountExistenceChecker(IConnectionRepository connectionRepository,
                                IStartRegisteringAccount startRegisteringAccount, IStartApp startApp,
                                IMastodonAccountRepository mastodonAccountRepository, IMakeMastodonConnection makeMastodonConnection,
                                IMisskeyAccountRepository misskeyAccountRepository, IMakeMisskeyConnection makeMisskeyConnection)
 {
     _connectionRepository    = connectionRepository;
     _startRegisteringAccount = startRegisteringAccount;
     _startApp = startApp;
     _mastodonAccountRepository = mastodonAccountRepository;
     _makeMastodonConnection    = makeMastodonConnection;
     _misskeyAccountRepository  = misskeyAccountRepository;
     _makeMisskeyConnection     = makeMisskeyConnection;
 }
Example #4
0
 public AuthorizeMastodonAccount(IConnectionRepository connectionRepository,
                                 IMastodonClientRepository mastodonClientRepository,
                                 IMastodonAccountRepository mastodonAccountRepository,
                                 IAuthorizeMastodonAccountWithCode authorizeMastodonAccountWithCode,
                                 IShowMastodonAuthenticationError showMastodonAuthenticationError,
                                 IGetAccountInfo getAccountInfo,
                                 IShowGetMastodonAccountInfoError showGetMastodonAccountInfoError,
                                 IMakeMastodonConnection makeMastodonConnection,
                                 IFinishAuthorizeMastodonAccount finishAuthorizeMastodonAccount)
 {
     _connectionRepository             = connectionRepository;
     _mastodonClientRepository         = mastodonClientRepository;
     _mastodonAccountRepository        = mastodonAccountRepository;
     _authorizeMastodonAccountWithCode = authorizeMastodonAccountWithCode;
     _showMastodonAuthenticationError  = showMastodonAuthenticationError;
     _getAccountInfo = getAccountInfo;
     _showGetMastodonAccountInfoError = showGetMastodonAccountInfoError;
     _makeMastodonConnection          = makeMastodonConnection;
     _finishAuthorizeMastodonAccount  = finishAuthorizeMastodonAccount;
 }