Class DonationSession

java.lang.Object
ui.DonationSession

public class DonationSession extends Object
Holds the state of an ongoing donation session. Passed between donation flow controllers to carry the selected organization and amount.
  • Constructor Details

    • DonationSession

      public DonationSession()
  • Method Details

    • getOrganization

      public Organization 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

      public void setOrganization(Organization organization)
      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