diff --git a/Party_APP/.project b/Party_APP/.project index 3d5ab97..f706463 100644 --- a/Party_APP/.project +++ b/Party_APP/.project @@ -10,8 +10,20 @@ + + com.stateofflow.eclipse.metrics.MetricsBuilder + + + + + net.sourceforge.metrics.builder + + + org.eclipse.jdt.core.javanature + com.stateofflow.eclipse.metrics.MetricsNature + net.sourceforge.metrics.nature diff --git a/Party_APP/bin/model/User.class b/Party_APP/bin/model/User.class new file mode 100644 index 0000000..35aea9c Binary files /dev/null and b/Party_APP/bin/model/User.class differ diff --git a/Party_APP/src/model/User.java b/Party_APP/src/model/User.java new file mode 100644 index 0000000..370ae91 --- /dev/null +++ b/Party_APP/src/model/User.java @@ -0,0 +1,39 @@ +package model; + +public class User +{ + private String _username; + private String _password; + //once other classes made these errors should disappear + private Contact[] _contactList; + private Party[] _currentParties; + private Party[] _pastParties; + + //Constructor + public User(String un, String pw) + { + _username = un; + _password = pw; + } + + //getter for username + public String getUsername() + { + return _username; + } + + //setter for username + public void setUsername(String newUn) + { + _username = newUn; + } + + //setter for password, asking for old password first + public void setPassword(String oldPw, String newPw) + { + if (oldPw.equals(_password)) + _password = newPw; + } + + +}