com.aetrion.flickr.people
Class User

java.lang.Object
  extended by com.aetrion.flickr.people.User
All Implemented Interfaces:
BuddyIconable, java.io.Serializable

public class User
extends java.lang.Object
implements java.io.Serializable, BuddyIconable

Version:
$Id: User.java,v 1.21 2009/07/23 20:41:03 x-mago Exp $
Author:
Anthony Eden
See Also:
Serialized Form

Constructor Summary
User()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAwayMessage()
           
 long getBandwidthMax()
           
 long getBandwidthUsed()
           
 java.lang.String getBuddyIconUrl()
          Construct the BuddyIconUrl.
 java.util.Date getFaveDate()
          The Date, when a User has favourited a Photo.
 long getFilesizeMax()
           
 int getIconFarm()
           
 int getIconServer()
           
 java.lang.String getId()
           
 java.lang.String getLocation()
           
 java.lang.String getMbox_sha1sum()
           
 OnlineStatus getOnline()
           
 int getPhotosCount()
           
 java.util.Date getPhotosFirstDate()
           
 java.util.Date getPhotosFirstDateTaken()
           
 java.lang.String getRealName()
           
 java.lang.String getUsername()
           
 int hashCode()
           
 boolean isAdmin()
           
 boolean isPro()
           
 void setAdmin(boolean admin)
           
 void setAwayMessage(java.lang.String awayMessage)
           
 void setBandwidthMax(long bandwidthMax)
           
 void setBandwidthMax(java.lang.String bandwidthMax)
           
 void setBandwidthUsed(long bandwidthUsed)
           
 void setBandwidthUsed(java.lang.String bandwidthUsed)
           
 void setFaveDate(java.util.Date faveDate)
          Date when User has faved a Photo.
 void setFaveDate(long faveDate)
           
 void setFaveDate(java.lang.String faveDate)
           
 void setFilesizeMax(long filesizeMax)
           
 void setFilesizeMax(java.lang.String filesizeMax)
           
 void setIconFarm(int iconFarm)
           
 void setIconFarm(java.lang.String iconFarm)
           
 void setIconServer(int iconServer)
           
 void setIconServer(java.lang.String iconServer)
           
 void setId(java.lang.String id)
           
 void setLocation(java.lang.String location)
           
 void setMbox_sha1sum(java.lang.String mbox_sha1sum)
           
 void setOnline(OnlineStatus online)
           
 void setPhotosCount(int photosCount)
           
 void setPhotosCount(java.lang.String photosCount)
           
 void setPhotosFirstDate(java.util.Date photosFirstDate)
           
 void setPhotosFirstDate(long photosFirstDate)
           
 void setPhotosFirstDate(java.lang.String photosFirstDate)
           
 void setPhotosFirstDateTaken(java.util.Date photosFirstDateTaken)
           
 void setPhotosFirstDateTaken(java.lang.String photosFirstDateTaken)
           
 void setPro(boolean pro)
           
 void setRealName(java.lang.String realName)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User()
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

isAdmin

public boolean isAdmin()

setAdmin

public void setAdmin(boolean admin)

isPro

public boolean isPro()

setPro

public void setPro(boolean pro)

getIconFarm

public int getIconFarm()
Specified by:
getIconFarm in interface BuddyIconable

setIconFarm

public void setIconFarm(int iconFarm)
Specified by:
setIconFarm in interface BuddyIconable

setIconFarm

public void setIconFarm(java.lang.String iconFarm)
Specified by:
setIconFarm in interface BuddyIconable

getIconServer

public int getIconServer()
Specified by:
getIconServer in interface BuddyIconable

setIconServer

public void setIconServer(int iconServer)
Specified by:
setIconServer in interface BuddyIconable

setIconServer

public void setIconServer(java.lang.String iconServer)
Specified by:
setIconServer in interface BuddyIconable

getRealName

public java.lang.String getRealName()

setRealName

public void setRealName(java.lang.String realName)

getLocation

public java.lang.String getLocation()

getBuddyIconUrl

public java.lang.String getBuddyIconUrl()
Construct the BuddyIconUrl.

If none available, return the default, or an URL assembled from farm, iconserver and nsid.

Specified by:
getBuddyIconUrl in interface BuddyIconable
Returns:
The BuddyIconUrl
See Also:
Flickr Documentation

setLocation

public void setLocation(java.lang.String location)

getPhotosFirstDate

public java.util.Date getPhotosFirstDate()

setPhotosFirstDate

public void setPhotosFirstDate(java.util.Date photosFirstDate)

setPhotosFirstDate

public void setPhotosFirstDate(long photosFirstDate)

setPhotosFirstDate

public void setPhotosFirstDate(java.lang.String photosFirstDate)

getPhotosFirstDateTaken

public java.util.Date getPhotosFirstDateTaken()

setPhotosFirstDateTaken

public void setPhotosFirstDateTaken(java.util.Date photosFirstDateTaken)

setPhotosFirstDateTaken

public void setPhotosFirstDateTaken(java.lang.String photosFirstDateTaken)

setFaveDate

public void setFaveDate(java.lang.String faveDate)

setFaveDate

public void setFaveDate(long faveDate)

setFaveDate

public void setFaveDate(java.util.Date faveDate)
Date when User has faved a Photo.
flickr.photos.getFavorites returns person-data where this Date will be set.

Parameters:
faveDate -

getFaveDate

public java.util.Date getFaveDate()
The Date, when a User has favourited a Photo.
This value is set, when a User is created by PhotosInterface.getFavorites(String, int, int).

Returns:
faveDate

getPhotosCount

public int getPhotosCount()

setPhotosCount

public void setPhotosCount(int photosCount)

setPhotosCount

public void setPhotosCount(java.lang.String photosCount)

getOnline

public OnlineStatus getOnline()

setOnline

public void setOnline(OnlineStatus online)

getAwayMessage

public java.lang.String getAwayMessage()

setAwayMessage

public void setAwayMessage(java.lang.String awayMessage)

getBandwidthMax

public long getBandwidthMax()

setBandwidthMax

public void setBandwidthMax(long bandwidthMax)

setBandwidthMax

public void setBandwidthMax(java.lang.String bandwidthMax)

getBandwidthUsed

public long getBandwidthUsed()

setBandwidthUsed

public void setBandwidthUsed(long bandwidthUsed)

setBandwidthUsed

public void setBandwidthUsed(java.lang.String bandwidthUsed)

getFilesizeMax

public long getFilesizeMax()

setFilesizeMax

public void setFilesizeMax(long filesizeMax)

setFilesizeMax

public void setFilesizeMax(java.lang.String filesizeMax)

setMbox_sha1sum

public void setMbox_sha1sum(java.lang.String mbox_sha1sum)

getMbox_sha1sum

public java.lang.String getMbox_sha1sum()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()


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