Package com.aetrion.flickr.photosets

Examples of com.aetrion.flickr.photosets.PhotosetsInterface


        return photosetsCommentsInterface;
    }

    public PhotosetsInterface getPhotosetsInterface() {
        if (photosetsInterface == null) {
            photosetsInterface = new PhotosetsInterface(apiKey, sharedSecret, transport);
        }
        return photosetsInterface;
    }
View Full Code Here


    String userToken = Program.getProperty( "flickr.userToken" );
    String sPhotosets = Program.getProperty( "flickr.photosets" );
   
    if( sPhotosets != "" )
    {
      PhotosetsInterface photosetsI = flickr.getPhotosetsInterface();
     
      Photosets photosets = null;
     
      try
      {
        photosets = photosetsI.getList(userToken);
      }
      catch (Exception e) //IOException e2, SAXException e2, FlickrException e2) {
      {
        e.printStackTrace();
        return null;
      }
     
      if( photosets != null )
      {
        // If we have a list of photosets, just get the photos from there.
        @SuppressWarnings("unchecked")
        Collection<Photoset> photosetCollection = photosets.getPhotosets();
     
        PhotoList photosetsPhotoList = new PhotoList();
       
        String[] photosetsNamesArray = sPhotosets.split(";");
       
        int photosetsPhotoCount = photoCount / photosetsNamesArray.length;
        int photosetsPhotoCountExtra = 0;
        for( Photoset photoset : photosetCollection )
        {
          String photosetName = photoset.getTitle();
          for( int i = 0; i<photosetsNamesArray.length;i++)
          {
            if( photosetsNamesArray[i] != "" &&
                photosetsNamesArray[i].compareToIgnoreCase(photosetName) == 0 )
            {
              PhotoList photoList = null;
              try
              {
                photoList = photosetsI.getPhotos(photoset.getId(), photosetsPhotoCount + photosetsPhotoCountExtra, 1);
              }
              catch( Exception e) //catch (IOException e), catch (SAXException e), catch (FlickrException e)
              {
                e.printStackTrace();
                return null;
View Full Code Here

TOP

Related Classes of com.aetrion.flickr.photosets.PhotosetsInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.