Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
|
||
} |