com.aetrion.flickr.activity
Class ActivityInterface
java.lang.Object
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.3 2007/11/10 00:38:14 x-mago Exp $
- Author:
- Martin Goebel
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 |
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
ActivityInterface
public ActivityInterface(java.lang.String apiKey,
Transport transport)
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-2007 Aetrion LLC. All Rights Reserved.