public class AccountData
extends java.lang.Object
Constructor and Description |
---|
AccountData(long account)
Create a new AccountData object
|
Modifier and Type | Method and Description |
---|---|
long |
getAccount()
Get account ID associated with this dataset.
|
java.util.List<LentItem> |
getLent()
Get a list of items borrowed by this user.
|
java.lang.String |
getPendingFees() |
java.util.List<ReservedItem> |
getReservations()
Get the list of ordered/reserved items.
|
java.lang.String |
getValidUntil()
Expiration date of a library account as a human-readable text.
|
java.lang.String |
getWarning()
Get the warning.
|
void |
setAccount(long account)
Set account ID associated with this dataset.
|
void |
setLent(java.util.List<LentItem> lent)
Set the list of items borrowed by this user.
|
void |
setPendingFees(java.lang.String pendingFees)
Set the user's library account's pending fees.
|
void |
setReservations(java.util.List<ReservedItem> reservations)
Set the list of ordered/reserved items.
|
void |
setValidUntil(java.lang.String validUntil) |
void |
setWarning(java.lang.String warning)
Set a warning which is shown to the user above the account data in a
yellow bar.
|
public AccountData(long account)
account
- Account ID associated with this dataset.public java.util.List<LentItem> getLent()
setLent(List)
public void setLent(java.util.List<LentItem> lent)
lent
- List of items, see abovepublic java.util.List<ReservedItem> getReservations()
setReservations(List)
public void setReservations(java.util.List<ReservedItem> reservations)
reservations
- List of reservations, see abovepublic long getAccount()
public void setAccount(long account)
account
- An IDpublic java.lang.String getPendingFees()
public void setPendingFees(java.lang.String pendingFees)
pendingFees
- human-readable Stringpublic java.lang.String getValidUntil()
public void setValidUntil(java.lang.String validUntil)
validUntil
- the Expiration date of a library accountpublic java.lang.String getWarning()
public void setWarning(java.lang.String warning)
warning
- The warning message