com.aetrion.flickr.activity
Class ActivityInterface

java.lang.Object
  extended by com.aetrion.flickr.activity.ActivityInterface

public class ActivityInterface
extends java.lang.Object

Gather activity information belonging to the calling user.

Version:
$Id: ActivityInterface.java,v 1.4 2008/01/28 23:01:45 x-mago Exp $
Author:
Martin Goebel

Field Summary
static java.lang.String METHOD_USER_COMMENTS
           
static java.lang.String METHOD_USER_PHOTOS
           
 
Constructor Summary
ActivityInterface(java.lang.String apiKey, java.lang.String sharedSecret, Transport transport)
           
 
Method Summary
 boolean checkTimeframeArg(java.lang.String timeframe)
          Checks for a valid timeframe-argument.
 ItemList userComments(int perPage, int page)
          Returns a list of recent activity on photos commented on by the calling user.
 ItemList userPhotos(int perPage, int page, java.lang.String timeframe)
          Returns a list of recent activity on photos belonging to the calling user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_USER_COMMENTS

public static final java.lang.String METHOD_USER_COMMENTS
See Also:
Constant Field Values

METHOD_USER_PHOTOS

public static final java.lang.String METHOD_USER_PHOTOS
See Also:
Constant Field Values
Constructor Detail

ActivityInterface

public ActivityInterface(java.lang.String apiKey,
                         java.lang.String sharedSecret,
                         Transport transport)
Method Detail

userComments

public ItemList userComments(int perPage,
                             int page)
                      throws java.io.IOException,
                             org.xml.sax.SAXException,
                             FlickrException
Returns a list of recent activity on photos commented on by the calling user.
Flickr says: Do not poll this method more than once an hour.

Parameters:
perPage -
page -
Returns:
ItemList
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

userPhotos

public ItemList userPhotos(int perPage,
                           int page,
                           java.lang.String timeframe)
                    throws java.io.IOException,
                           org.xml.sax.SAXException,
                           FlickrException
Returns a list of recent activity on photos belonging to the calling user.
Flickr says: Do not poll this method more than once an hour.

Parameters:
perPage -
page -
timeframe -
Returns:
ItemList
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

checkTimeframeArg

public boolean checkTimeframeArg(java.lang.String timeframe)
Checks for a valid timeframe-argument.
Expects either days, or hours. Like: 2d or 4h.

Parameters:
timeframe -
Returns:
boolean


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.