Klasse ExtendSubscriptionEvent

Alle implementierten Schnittstellen:
com.github.philippheuer.events4j.api.domain.IEvent

public final class ExtendSubscriptionEvent extends AbstractChannelEvent
Called when a user extends their existing subscription into a future month.
Siehe auch:
  • Konstruktordetails

    • ExtendSubscriptionEvent

      public ExtendSubscriptionEvent(EventChannel channel, EventUser user, SubscriptionPlan subPlan, int cumulativeMonths, Month benefitEndMonth)
      Event Constructor
      Parameter:
      channel - The channel that this event originates from.
      user - The user extending their subscription.
      subPlan - The type of subscription plan being used.
      cumulativeMonths - The total number of months the user has subscribed.
      benefitEndMonth - The new month that the subscription will end on.
  • Methodendetails

    • getUser

      public EventUser getUser()
      The user extending their subscription.
    • getSubPlan

      public SubscriptionPlan getSubPlan()
      The type of subscription plan being used.
    • getCumulativeMonths

      public int getCumulativeMonths()
      The total number of months the user has subscribed.
    • getBenefitEndMonth

      public Month getBenefitEndMonth()
      The new month that the subscription will end on.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse AbstractChannelEvent
    • canEqual

      protected boolean canEqual(Object other)
      Setzt außer Kraft:
      canEqual in Klasse AbstractChannelEvent
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse AbstractChannelEvent
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse AbstractChannelEvent