Beispiel #1
0
    public FlickrClient(ApiSecretSettings apiSecretSettings)
    {
        var settings = apiSecretSettings.Flickr;

        _flickr = new FlickrNet.Flickr(settings.ApiKey, settings.ApiSecret)
        {
            OAuthAccessToken       = settings.Token,
            OAuthAccessTokenSecret = settings.TokenSecret
        };
    }
Beispiel #2
0
 public JwtService(ApiSecretSettings apiSecretSettings)
 {
     _secret = apiSecretSettings.Jwt.Secret;
 }
 public GalleryService(IFlickrClient flickrClient, ApiSecretSettings apiSecretSettings)
 {
     _flickrClient  = flickrClient;
     _adminAlbumIds = apiSecretSettings.Flickr.AdminAlbums.Values.ToHashSet();
 }
 public AdminAlbumService(IFlickrClient flickrClient, ApiSecretSettings apiSecretSettings)
 {
     _flickrClient       = flickrClient;
     _adminAlbumMappings = apiSecretSettings.Flickr.AdminAlbums;
 }
Beispiel #5
0
 public ApiDatabase(ApiSecretSettings apiSecretSettings)
 {
     _sessionFactory = CreateSessionFactory(apiSecretSettings.Database);
 }