Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hi
  • Loading branch information
gtr12001 authored and gtr12001 committed Feb 26, 2016
1 parent 8610c32 commit 8a67b4b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Party_APP/.project
Expand Up @@ -10,8 +10,20 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.stateofflow.eclipse.metrics.MetricsBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>net.sourceforge.metrics.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.stateofflow.eclipse.metrics.MetricsNature</nature>
<nature>net.sourceforge.metrics.nature</nature>
</natures>
</projectDescription>
Binary file added Party_APP/bin/model/User.class
Binary file not shown.
39 changes: 39 additions & 0 deletions 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;
}


}

0 comments on commit 8a67b4b

Please sign in to comment.