Class EliteLifetimeStatus

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.econ.EliteLifetimeStatus
All Implemented Interfaces:
Serializable, Comparable<Object>, EliteLevelBean, IDBean, RGBColor, Cacheable

public class EliteLifetimeStatus extends DatabaseBean implements EliteLevelBean
A bean to track Pilots achieving a lifetime Elite status.
Since:
11.5
Version:
11.5
Author:
Luke
See Also:
  • Constructor Details

    • EliteLifetimeStatus

      public EliteLifetimeStatus(int pilotID, EliteLifetime el)
      Creates the bean.
      Parameters:
      pilotID - the Pilot's database ID
      el - the EliteLifetime status achieved
  • Method Details

    • getLifetimeStatus

      public EliteLifetime getLifetimeStatus()
      Returns the lifetime Elite status achieved.
      Returns:
      an EliteLifetime bean
    • toStatus

      public EliteStatus toStatus()
      Creates an EliteStatus bean with the equivalent status level.
      Returns:
      an EliteStatus bean
    • getLevel

      public EliteLevel getLevel()
      Description copied from interface: EliteLevelBean
      Returns the Elite status level.
      Specified by:
      getLevel in interface EliteLevelBean
      Returns:
      the EliteLevel
    • getColor

      public int getColor()
      Description copied from interface: RGBColor
      Returns the RGB color.
      Specified by:
      getColor in interface RGBColor
      Returns:
      a 24-bit RGB color value
    • getEffectiveOn

      public Instant getEffectiveOn()
      Returns the effective date of this status.
      Returns:
      the effective date
    • getUpgradeReason

      public UpgradeReason getUpgradeReason()
      Returns the reason for this status upgrade.
      Returns:
      an UpgradeReason
    • setEffectiveOn

      public void setEffectiveOn(Instant dt)
      Returns the effective date of this status.
      Parameters:
      dt - the effective date
    • setUpgradeReason

      public void setUpgradeReason(UpgradeReason ur)
      Updates the reason for this status upgrade.
      Parameters:
      ur - an UpgradeReason
    • setLevel

      public void setLevel(EliteLevel lvl)
      Description copied from interface: EliteLevelBean
      Updates the Elite status level.
      Specified by:
      setLevel in interface EliteLevelBean
      Parameters:
      lvl - the EliteLevel