public class Client extends CafetData
Data.getClient(int id))| Constructor and Description |
|---|
Client()
The Client object is the wich stores every client information for later
use, it's generaly generated by a Data static method (such as
Data.getClient(int
id)) |
Client(int id,
String email,
String alias,
String familyNane,
String surname,
boolean member,
float balance,
int registrationYear)
The Client object is the one that stores every client information for
later use, it's generaly generated by a Data static method (such as
Data.getClient(int
id)) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlias()
Return the alias
|
float |
getBalance()
Return the balance
|
String |
getEmail()
Return the email
|
Expense[] |
getExpenses()
Return a list of latest client's expenses
|
String |
getFamilyNane()
Return the familynane
|
String |
getFormatedName()
Returns the name like Suname NAME
|
int |
getId()
Return the id
|
int |
getRegistrationYear()
Return the registrationYear
|
Reload[] |
getReloads()
Return a list of latest client's reloads
|
String |
getSurname()
Return the firstname
|
int |
hashCode() |
boolean |
isMember()
Return the member
|
String |
toString() |
void |
update()
Update information about the client
|
public Client(int id,
String email,
String alias,
String familyNane,
String surname,
boolean member,
float balance,
int registrationYear)
Data.getClient(int
id))id - an integer, the ID of the client in the DataBaseemail - the email of the clientalias - the username of the clientfamilyName - the familyname of the clientfirstname - the firstname of the clientmember - a boolean that representswhether or not the client is a
member of the association and can benefits for discountsbalance - the actual balance of the clientregistrationYear - the year of the client's registrationpublic Client()
Data.getClient(int
id))public final int getId()
public final String getEmail()
public final String getAlias()
public final String getFamilyNane()
public final String getSurname()
public final boolean isMember()
public final float getBalance()
public final int getRegistrationYear()
public final Expense[] getExpenses() throws APIException, IOException
IOExceptionAPIExceptionpublic final Reload[] getReloads() throws APIException, IOException
IOExceptionAPIExceptionpublic final String getFormatedName()
public void update()
throws APIException,
IOException
IOExceptionAPIExceptionCopyright © 2019 Nowtryz. All rights reserved.