diff --git a/src/main/java/springapp/command/ClientCommand.java b/src/main/java/springapp/command/ClientCommand.java index 4c48209..884e478 100644 --- a/src/main/java/springapp/command/ClientCommand.java +++ b/src/main/java/springapp/command/ClientCommand.java @@ -3,7 +3,7 @@ import springapp.domain.Client; /** - * This command class is used to pass information back and force between the client and the server + * This command class is used to pass information back and force between the client and the server --------- * */ public class ClientCommand { @@ -12,6 +12,7 @@ public class ClientCommand { private String name; private String address; private String phoneNumber; + private String email; /** * Creates a command object that has the initial values the same as the client passed in @@ -23,6 +24,7 @@ public ClientCommand(Client client) { this.name = client.getName(); this.address = client.getAddress(); this.phoneNumber = client.getPhoneNumber(); + this.email = client.getEmail(); } } @@ -57,6 +59,14 @@ public void setAddress(String address) { public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } + + /** + * Set the email of the client + * @param email the email + */ + public void setEmail(String email) { + this.email = email; + } /** * @return the client id, returns null if this client is new and not persisted to the database yet @@ -85,5 +95,15 @@ public String getAddress() { public String getPhoneNumber() { return phoneNumber; } - + + /** + * @return the client email + */ + public String getEmail() { + return email; + } + + + + }