package net.pterodactylus.sone.data;
/**
- * A profile stores personal information about a {@link User}.
+ * A profile stores personal information about a {@link User}. All information
+ * is optional and can be {@code null}.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class Profile {
+ /** The first name. */
+ private String firstName;
+
+ /** The middle name(s). */
+ private String middleName;
+
+ /** The last name. */
+ private String lastName;
+
/**
- * Creates a new profile.
+ * Creates a new empty profile.
*/
public Profile() {
+ /* do nothing. */
}
/**
* The profile to copy
*/
public Profile(Profile profile) {
+ this.firstName = profile.firstName;
+ this.middleName = profile.middleName;
+ this.lastName = profile.lastName;
+ }
+
+ //
+ // ACCESSORS
+ //
+
+ /**
+ * Returns the first name.
+ *
+ * @return The first name
+ */
+ public String getFirstName() {
+ return firstName;
+ }
+
+ /**
+ * Sets the first name.
+ *
+ * @param firstName
+ * The first name to set
+ */
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ /**
+ * Returns the middle name(s).
+ *
+ * @return The middle name
+ */
+ public String getMiddleName() {
+ return middleName;
+ }
+
+ /**
+ * Sets the middle name.
+ *
+ * @param middleName
+ * The middle name to set
+ */
+ public void setMiddleName(String middleName) {
+ this.middleName = middleName;
+ }
+
+ /**
+ * Returns the last name.
+ *
+ * @return The last name
+ */
+ public String getLastName() {
+ return lastName;
+ }
+
+ /**
+ * Sets the last name.
+ *
+ * @param lastName
+ * The last name to set
+ */
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
}
}