Back to project page SymptomManagement.
The source code is released under:
Apache License
If you think the Android project SymptomManagement listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.coursera.capstone.data; //from ww w .ja v a 2s. c om import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapable public class Patient { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long patientId; @Persistent private String patientEmailId; @Persistent private String GCMregId; @Persistent private String firstName; @Persistent private String lastName; @Persistent private String gender; @Persistent private String pictureUrl; @Persistent private String about; @Persistent private Date birthDate; @Persistent private List<Long> doctorIds; public Patient() { this.doctorIds = new ArrayList<Long>(); } public Patient(String patientEmailId, String firstName, String lastName, String gender, String pictureUrl, Date birthDate) { super(); this.patientEmailId = patientEmailId; this.firstName = firstName; this.lastName = lastName; this.gender = gender; this.pictureUrl = pictureUrl; this.birthDate = birthDate; } public Long getPatientId() { return patientId; } public String getPatientEmailId() { return patientEmailId; } public String getGCMregId() { return GCMregId; } public String getFirstName() { return firstName; } public String getLastName() { return lastName; } public String getGender() { return gender; } public String getPictureUrl() { return pictureUrl; } public String getAbout() { return about; } public Date getBirthDate() { return birthDate; } public List<Long> getDoctorIds() { return doctorIds; } public void setPatientId(Long patientId) { this.patientId = patientId; } public void setPatientEmailId(String patientEmailId) { this.patientEmailId = patientEmailId; } public void setGCMregId(String gCMregId) { GCMregId = gCMregId; } public void setFirstName(String firstName) { this.firstName = firstName; } public void setLastName(String lastName) { this.lastName = lastName; } public void setGender(String gender) { this.gender = gender; } public void setPictureUrl(String pictureUrl) { this.pictureUrl = pictureUrl; } public void setAbout(String about) { this.about = about; } public void setBirthDate(Date birthDate) { this.birthDate = birthDate; } public void setDoctorIds(List<Long> doctorIds) { this.doctorIds = doctorIds; } public void addDoctorId(Long doctorId) { this.doctorIds.add(doctorId); } }