public GooglePhotosDestination(IGooglePhotosConfiguration googlePhotosConfiguration, IGooglePhotosLanguage googlePhotosLanguage) { _googlePhotosConfiguration = googlePhotosConfiguration; _googlePhotosLanguage = googlePhotosLanguage; _oAuth2Settings = new OAuth2Settings { AuthorizationUri = new Uri("https://accounts.google.com").AppendSegments("o", "oauth2", "auth"). ExtendQuery(new Dictionary <string, string> { { "response_type", "code" }, { "client_id", "{ClientId}" }, { "redirect_uri", "{RedirectUrl}" }, { "state", "{State}" }, { "scope", "https://picasaweb.google.com/data/" } }), TokenUrl = new Uri("https://www.googleapis.com/oauth2/v3/token"), CloudServiceName = "GooglePhotos", ClientId = googlePhotosConfiguration.ClientId, ClientSecret = googlePhotosConfiguration.ClientSecret, RedirectUrl = "http://getgreenshot.org", AuthorizeMode = AuthorizeModes.LocalhostServer, Token = googlePhotosConfiguration }; }
public GooglePhotosConfigViewModel( IGooglePhotosConfiguration googlePhotosConfiguration, IGooglePhotosLanguage googlePhotosLanguage, FileConfigPartViewModel fileConfigPartViewModel) { GooglePhotosConfiguration = googlePhotosConfiguration; GooglePhotosLanguage = googlePhotosLanguage; FileConfigPartViewModel = fileConfigPartViewModel; }
public GooglePhotosDestination( IGooglePhotosConfiguration googlePhotosConfiguration, IGooglePhotosLanguage googlePhotosLanguage, INetworkConfiguration networkConfiguration, IResourceProvider resourceProvider, ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, Func <CancellationTokenSource, Owned <PleaseWaitForm> > pleaseWaitFormFactory ) : base(coreConfiguration, greenshotLanguage) { _googlePhotosConfiguration = googlePhotosConfiguration; _googlePhotosLanguage = googlePhotosLanguage; _networkConfiguration = networkConfiguration; _resourceProvider = resourceProvider; _pleaseWaitFormFactory = pleaseWaitFormFactory; _oAuth2Settings = new OAuth2Settings { AuthorizationUri = new Uri("https://accounts.google.com").AppendSegments("o", "oauth2", "auth"). ExtendQuery(new Dictionary <string, string> { { "response_type", "code" }, { "client_id", "{ClientId}" }, { "redirect_uri", "{RedirectUrl}" }, { "state", "{State}" }, { "scope", "https://picasaweb.google.com/data/" } }), TokenUrl = new Uri("https://www.googleapis.com/oauth2/v3/token"), CloudServiceName = "GooglePhotos", ClientId = googlePhotosConfiguration.ClientId, ClientSecret = googlePhotosConfiguration.ClientSecret, RedirectUrl = "http://getgreenshot.org", AuthorizeMode = AuthorizeModes.LocalhostServer, Token = googlePhotosConfiguration }; }