package com.willsuwei.cs3520;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;

/**
 *
 * @author Will
 */
public class User implements Serializable{
    private String username, password, email, firstname, lastname;
    private Calendar dob;
    private ArrayList<Message> message;

    public User(String username, String password, String email, String firstname, String lastname, Calendar dob) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.firstname = firstname;
        this.lastname = lastname;
        this.dob = dob;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public Calendar getDob() {
        return dob;
    }

    public void setDob(Calendar dob) {
        this.dob = dob;
    }

    public ArrayList<Message> getMessage() {
        return message;
    }

    public void setMessage(ArrayList<Message> message) {
        this.message = message;
    }
    
}

@@ -435,34 +435,26 @@
 name
-;%0A    private Calendar dob
+, year, month, day
 ;%0A  
@@ -591,28 +591,53 @@
 stname, 
-Calendar dob
+String year, String month, String day
 ) %7B%0A    
@@ -807,33 +807,87 @@
        this.
-dob = dob
+year = year;%0A        this.month = month;%0A        this.day = day
 ;%0A    %7D%0A%0A   
@@ -875,32 +875,33 @@
 y = day;%0A    %7D%0A%0A
+%0A
     public Strin
@@ -1657,23 +1657,153 @@
 lic 
-Calendar getDob
+String getYear() %7B%0A        return year;%0A    %7D%0A%0A    public void setYear(String year) %7B%0A        this.year = year;%0A    %7D%0A%0A    public String getMonth
 () %7B
@@ -1818,19 +1818,21 @@
  return 
-dob
+month
 ;%0A    %7D%0A
@@ -1855,24 +1855,154 @@
  set
-Dob(Calendar dob
+Month(String month) %7B%0A        this.month = month;%0A    %7D%0A%0A    public String getDay() %7B%0A        return day;%0A    %7D%0A%0A    public void setDay(String day
 ) %7B%0A
@@ -2019,16 +2019,16 @@
 is.d
-ob
+ay
  = d
-ob
+ay
 ;%0A  
@@ -2208,10 +2208,11 @@
  %7D%0A    %0A
+%0A
 %7D%0A

add user worked