com.aetrion.flickr.prefs
Class PrefsInterface

java.lang.Object
  extended by com.aetrion.flickr.prefs.PrefsInterface

public class PrefsInterface
extends java.lang.Object

Requesting preferences for the current authenticated user.

Version:
$Id: PrefsInterface.java,v 1.6 2008/06/28 22:30:04 x-mago Exp $
Author:
Martin Goebel

Field Summary
static java.lang.String METHOD_GET_CONTENT_TYPE
           
static java.lang.String METHOD_GET_GEO_PERMS
           
static java.lang.String METHOD_GET_HIDDEN
           
static java.lang.String METHOD_GET_PRIVACY
           
static java.lang.String METHOD_GET_SAFETY_LEVEL
           
 
Constructor Summary
PrefsInterface(java.lang.String apiKey, java.lang.String sharedSecret, Transport transportAPI)
          Construct a PrefsInterface.
 
Method Summary
 java.lang.String getContentType()
          Returns the default content type preference for the user.
 int getGeoPerms()
          Returns the default privacy level for geographic information attached to the user's photos.
 boolean getHidden()
          Returns the default hidden preference for the user.
 int getPrivacy()
          Returns the default privacy level preference for the user.
 java.lang.String getSafetyLevel()
          Returns the default safety level preference for the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_GET_CONTENT_TYPE

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

METHOD_GET_HIDDEN

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

METHOD_GET_SAFETY_LEVEL

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

METHOD_GET_PRIVACY

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

METHOD_GET_GEO_PERMS

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

PrefsInterface

public PrefsInterface(java.lang.String apiKey,
                      java.lang.String sharedSecret,
                      Transport transportAPI)
Construct a PrefsInterface.

Parameters:
apiKey - The API key
transportAPI - The Transport interface
Method Detail

getContentType

public java.lang.String getContentType()
                                throws java.io.IOException,
                                       org.xml.sax.SAXException,
                                       FlickrException
Returns the default content type preference for the user.

Returns:
The content-type
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException
See Also:
Flickr.CONTENTTYPE_OTHER, Flickr.CONTENTTYPE_PHOTO, Flickr.CONTENTTYPE_SCREENSHOT

getGeoPerms

public int getGeoPerms()
                throws java.io.IOException,
                       org.xml.sax.SAXException,
                       FlickrException
Returns the default privacy level for geographic information attached to the user's photos.

Returns:
privacy-level
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException
See Also:
Flickr.PRIVACY_LEVEL_NO_FILTER, Flickr.PRIVACY_LEVEL_PUBLIC, Flickr.PRIVACY_LEVEL_FRIENDS, Flickr.PRIVACY_LEVEL_FAMILY, Flickr.PRIVACY_LEVEL_FRIENDS_FAMILY, Flickr.PRIVACY_LEVEL_PRIVATE

getHidden

public boolean getHidden()
                  throws java.io.IOException,
                         org.xml.sax.SAXException,
                         FlickrException
Returns the default hidden preference for the user.

Returns:
boolean hidden or not
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

getSafetyLevel

public java.lang.String getSafetyLevel()
                                throws java.io.IOException,
                                       org.xml.sax.SAXException,
                                       FlickrException
Returns the default safety level preference for the user.

Returns:
The current users safety-level
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException
See Also:
Flickr.SAFETYLEVEL_MODERATE, Flickr.SAFETYLEVEL_RESTRICTED, Flickr.SAFETYLEVEL_SAFE

getPrivacy

public int getPrivacy()
               throws java.io.IOException,
                      org.xml.sax.SAXException,
                      FlickrException
Returns the default privacy level preference for the user.

Returns:
privacyLevel
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException
See Also:
Flickr.PRIVACY_LEVEL_NO_FILTER, Flickr.PRIVACY_LEVEL_PUBLIC, Flickr.PRIVACY_LEVEL_FRIENDS, Flickr.PRIVACY_LEVEL_FRIENDS_FAMILY, Flickr.PRIVACY_LEVEL_FAMILY, Flickr.PRIVACY_LEVEL_FRIENDS


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