User.java :  » UnTagged » android-makefriends » com » fsoft » mobile » android » bo » Android Open Source

Android Open Source » UnTagged » android makefriends 
android makefriends » com » fsoft » mobile » android » bo » User.java
/* 
 * User.java
 * 
 * MakeFriends Project
 *  
 * Version 1.0
 * 
 * Created by LINHNT on Dec 29, 2010
 * 
 * Copyright (C) 2010 FPT Software. All rights reserved.
 *  
 * Modification Logs: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  -------------------------------------------------------- 
 */
package com.fsoft.mobile.android.bo;

import java.util.Date;

/**
 * The Class User.
 */
public class User {
  
  /** The id. */
  private int id;
  
  /** The lastname. */
  private String lastname;
  
  /** The nickname. */
  private String nickname;
  
  /** The email. */
  private String email;
  
  /** The password. */
  private String password;
  
  /** The phone. */
  private String phone;
  
  /** The job. */
  private String job;
  
  /** The sex. */
  private int sex;
  
  /** The country. */
  private int country;
  
  /** The address. */
  private String address;
  
  /** The skype. */
  private String skype;
  
  /** The yahoo. */
  private String yahoo;
  
  /** The facebook. */
  private String facebook;
  
  /** The favorites. */
  private String favorites;
  
  /** The location_lat. */
  private double location_lat;
  
  /** The location_long. */
  private double location_long;
  
  /** The device. */
  private String device;
  
  /** The sharing. */
  private String sharing;
  
  /** The birthday. */
  private Date birthday;
  
  /** The status. */
  private int status;
  
  /** The message. */
  private String message;
  
  private boolean isFriend;

  /**
   * Instantiates a new user.
   */
  public User() {

  }

  // Contructor for Register
  /**
   * Instantiates a new user.
   *
   * @param firstname the firstname
   * @param lastname the lastname
   * @param nickname the nickname
   * @param email the email
   * @param password the password
   * @param phone the phone
   * @param job the job
   * @param sex the sex
   * @param country the country
   * @param address the address
   * @param skype the skype
   * @param yahoo the yahoo
   * @param facebook the facebook
   * @param favorites the favorites
   * @param birthday the birthday
   */
  public User(String firstname, String lastname, String nickname,
      String email, String password, String phone, String job, int sex,
      int country, String address, String skype, String yahoo,
      String facebook, String favorites, Date birthday) {
    super();
    this.firstname = firstname;
    this.lastname = lastname;
    this.nickname = nickname;
    this.email = email;
    this.password = password;
    this.phone = phone;
    this.job = job;
    this.sex = sex;
    this.country = country;
    this.address = address;
    this.skype = skype;
    this.yahoo = yahoo;
    this.facebook = facebook;
    this.favorites = favorites;
    this.birthday = birthday;
  }

  /**
   * Gets the message.
   *
   * @return the message
   */
  public String getMessage() {
    return message;
  }

  /**
   * Sets the message.
   *
   * @param message the new message
   */
  public void setMessage(String message) {
    this.message = message;
  }

  /**
   * Gets the status.
   *
   * @return the status
   */
  public int getStatus() {
    return status;
  }

  /**
   * Sets the status.
   *
   * @param status the new status
   */
  public void setStatus(int status) {
    this.status = status;
  }

  /**
   * Gets the birthday.
   *
   * @return the birthday
   */
  public Date getBirthday() {
    return birthday;
  }

  /**
   * Sets the birthday.
   *
   * @param birthday the new birthday
   */
  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  /** The firstname. */
  private String firstname;

  /**
   * Gets the firstname.
   *
   * @return the firstname
   */
  public String getFirstname() {
    return firstname;
  }

  /**
   * Sets the firstname.
   *
   * @param firstname the new firstname
   */
  public void setFirstname(String firstname) {
    this.firstname = firstname;
  }

  /**
   * Gets the id.
   *
   * @return the id
   */
  public int getId() {
    return id;
  }

  /**
   * Sets the id.
   *
   * @param id the new id
   */
  public void setId(int id) {
    this.id = id;
  }

  /**
   * Gets the lastname.
   *
   * @return the lastname
   */
  public String getLastname() {
    return lastname;
  }

  /**
   * Sets the lastname.
   *
   * @param lastname the new lastname
   */
  public void setLastname(String lastname) {
    this.lastname = lastname;
  }

  /**
   * Gets the nickname.
   *
   * @return the nickname
   */
  public String getNickname() {
    return nickname;
  }

  /**
   * Sets the nickname.
   *
   * @param nickname the new nickname
   */
  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  /**
   * Gets the email.
   *
   * @return the email
   */
  public String getEmail() {
    return email;
  }

  /**
   * Sets the email.
   *
   * @param email the new email
   */
  public void setEmail(String email) {
    this.email = email;
  }

  /**
   * Gets the password.
   *
   * @return the password
   */
  public String getPassword() {
    return password;
  }

  /**
   * Sets the password.
   *
   * @param password the new password
   */
  public void setPassword(String password) {
    this.password = password;
  }

  /**
   * Gets the phone.
   *
   * @return the phone
   */
  public String getPhone() {
    return phone;
  }

  /**
   * Sets the phone.
   *
   * @param phone the new phone
   */
  public void setPhone(String phone) {
    this.phone = phone;
  }

  /**
   * Gets the job.
   *
   * @return the job
   */
  public String getJob() {
    return job;
  }

  /**
   * Sets the job.
   *
   * @param job the new job
   */
  public void setJob(String job) {
    this.job = job;
  }

  /**
   * Gets the sex.
   *
   * @return the sex
   */
  public int getSex() {
    return sex;
  }

  /**
   * Sets the sex.
   *
   * @param sex the new sex
   */
  public void setSex(int sex) {
    this.sex = sex;
  }

  /**
   * Gets the country.
   *
   * @return the country
   */
  public int getCountry() {
    return country;
  }

  /**
   * Sets the country.
   *
   * @param country the new country
   */
  public void setCountry(int country) {
    this.country = country;
  }

  /**
   * Gets the address.
   *
   * @return the address
   */
  public String getAddress() {
    return address;
  }

  /**
   * Sets the address.
   *
   * @param address the new address
   */
  public void setAddress(String address) {
    this.address = address;
  }

  /**
   * Gets the skype.
   *
   * @return the skype
   */
  public String getSkype() {
    return skype;
  }

  /**
   * Sets the skype.
   *
   * @param skype the new skype
   */
  public void setSkype(String skype) {
    this.skype = skype;
  }

  /**
   * Gets the yahoo.
   *
   * @return the yahoo
   */
  public String getYahoo() {
    return yahoo;
  }

  /**
   * Sets the yahoo.
   *
   * @param yahoo the new yahoo
   */
  public void setYahoo(String yahoo) {
    this.yahoo = yahoo;
  }

  /**
   * Gets the facebook.
   *
   * @return the facebook
   */
  public String getFacebook() {
    return facebook;
  }

  /**
   * Sets the facebook.
   *
   * @param facebook the new facebook
   */
  public void setFacebook(String facebook) {
    this.facebook = facebook;
  }

  /**
   * Gets the favorites.
   *
   * @return the favorites
   */
  public String getFavorites() {
    return favorites;
  }

  /**
   * Sets the favorites.
   *
   * @param favorites the new favorites
   */
  public void setFavorites(String favorites) {
    this.favorites = favorites;
  }

  /**
   * Gets the location_lat.
   *
   * @return the location_lat
   */
  public double getLocation_lat() {
    return location_lat;
  }

  /**
   * Sets the location_lat.
   *
   * @param location_lat the new location_lat
   */
  public void setLocation_lat(double location_lat) {
    this.location_lat = location_lat;
  }

  /**
   * Gets the location_long.
   *
   * @return the location_long
   */
  public double getLocation_long() {
    return location_long;
  }

  /**
   * Sets the location_long.
   *
   * @param location_long the new location_long
   */
  public void setLocation_long(double location_long) {
    this.location_long = location_long;
  }

  /**
   * Gets the device.
   *
   * @return the device
   */
  public String getDevice() {
    return device;
  }

  /**
   * Sets the device.
   *
   * @param device the new device
   */
  public void setDevice(String device) {
    this.device = device;
  }

  /**
   * Gets the sharing.
   *
   * @return the sharing
   */
  public String getSharing() {
    return sharing;
  }

  /**
   * Sets the sharing.
   *
   * @param sharing the new sharing
   */
  public void setSharing(String sharing) {
    this.sharing = sharing;
  }
  

  public boolean isFriend() {
    return isFriend;
  }

  public void setFriend(boolean isFriend) {
    this.isFriend = isFriend;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.