com.sugestio.client.model
Class User

java.lang.Object
  extended by com.sugestio.client.model.Base
      extended by com.sugestio.client.model.User

public class User
extends Base


Nested Class Summary
static class User.Gender
           
 
Constructor Summary
User()
           
User(java.lang.String id)
           
 
Method Summary
 java.lang.String getApml()
           
 java.lang.String getBirthday()
           
 java.lang.String getFoaf()
           
 User.Gender getGender()
           
 java.lang.String getId()
           
 java.lang.String getLocation_latlong()
           
 java.lang.String getLocation_simple()
           
 void setApml(java.lang.String apml)
           
 void setBirthday(int year, int month, int day)
          Convenience method for assigning a birthday to this user
 void setBirthday(long milliseconds)
          Convenience method for assigning a birthday to this user
 void setBirthday(java.lang.String birthday)
          Set the birthday for this user.
 void setFoaf(java.lang.String foaf)
           
 void setGender(User.Gender gender)
           
 void setId(java.lang.String id)
           
 void setLocation_latlong(double latitude, double longitude)
           
 void setLocation_latlong(java.lang.String location_latlong)
           
 void setLocation_simple(java.lang.String location_simple)
           
 
Methods inherited from class com.sugestio.client.model.Base
getDateString, getDateString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User()

User

public User(java.lang.String id)
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getLocation_simple

public java.lang.String getLocation_simple()

setLocation_simple

public void setLocation_simple(java.lang.String location_simple)

getLocation_latlong

public java.lang.String getLocation_latlong()

setLocation_latlong

public void setLocation_latlong(java.lang.String location_latlong)

setLocation_latlong

public void setLocation_latlong(double latitude,
                                double longitude)

getGender

public User.Gender getGender()

setGender

public void setGender(User.Gender gender)

getBirthday

public java.lang.String getBirthday()

setBirthday

public void setBirthday(java.lang.String birthday)
Set the birthday for this user.

Parameters:
birthday - a date string of the format yyyy-MM-dd e.g., 1980-04-19

setBirthday

public void setBirthday(int year,
                        int month,
                        int day)
Convenience method for assigning a birthday to this user

Parameters:
year - 4 digits e.g., 2010
month - 0-based e.g., 0 for January
day - day of the month (1-31)

setBirthday

public void setBirthday(long milliseconds)
Convenience method for assigning a birthday to this user

Parameters:
milliseconds - number of milliseconds that have passed since the UNIX epoch

getApml

public java.lang.String getApml()

setApml

public void setApml(java.lang.String apml)

getFoaf

public java.lang.String getFoaf()

setFoaf

public void setFoaf(java.lang.String foaf)