Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
just adding javadoc shit for User class
  • Loading branch information
gtr12001 authored and gtr12001 committed Mar 4, 2016
1 parent 95c24d1 commit 465a22b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
Binary file modified Party_APP/bin/model/User.class
Binary file not shown.
30 changes: 26 additions & 4 deletions Party_APP/src/model/User.java
@@ -1,3 +1,17 @@
/*********************************************
* 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
Expand All @@ -9,26 +23,34 @@ public class User
private Party[] _currentParties;
private Party[] _pastParties;

//Constructor
/*******************************************
*User Constructor
******************************************/
public User(String un, String pw)
{
_username = un;
_password = pw;
}

//getter for username
/*******************************************
*Username getter
******************************************/
public String getUsername()
{
return _username;
}

//setter for username
/*******************************************
*Username setter
******************************************/
public void setUsername(String newUn)
{
_username = newUn;
}

//setter for password, asking for old password first
/*******************************************
*Password setter, old password required
******************************************/
public void setPassword(String oldPw, String newPw)
{
if (oldPw.equals(_password))
Expand Down

0 comments on commit 465a22b

Please sign in to comment.