Class DonationSession
java.lang.Object
ui.DonationSession
Holds the state of an ongoing donation session.
Passed between donation flow controllers to carry
the selected organization and amount.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the donation amount.Returns the organization selected for donation.voidsetAmount(int amount) Sets the donation amount.voidsetOrganization(Organization organization) Sets the organization to donate to.
-
Constructor Details
-
DonationSession
public DonationSession()
-
-
Method Details
-
getOrganization
Returns the organization selected for donation.- Returns:
- the selected organization
-
getAmount
public int getAmount()Returns the donation amount.- Returns:
- the amount in NOK
-
setOrganization
Sets the organization to donate to.- Parameters:
organization- the organization to set
-
setAmount
public void setAmount(int amount) Sets the donation amount.- Parameters:
amount- the amount in NOK
-