Skip to content
Permalink
465a22b2c9
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
61 lines (49 sloc) 1.31 KB
/*********************************************
* Class: User
* Author: Gabriella Reggiano
*
* Revision Log:
* 02/26/2016 - start code
* 03/04/2016 - adding in this javadoc shit
*
********************************************/
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;
/*******************************************
*User Constructor
******************************************/
public User(String un, String pw)
{
_username = un;
_password = pw;
}
/*******************************************
*Username getter
******************************************/
public String getUsername()
{
return _username;
}
/*******************************************
*Username setter
******************************************/
public void setUsername(String newUn)
{
_username = newUn;
}
/*******************************************
*Password setter, old password required
******************************************/
public void setPassword(String oldPw, String newPw)
{
if (oldPw.equals(_password))
_password = newPw;
}
}