Class CharityCampaign

java.lang.Object
com.github.twitch4j.helix.domain.CharityCampaign

public class CharityCampaign extends Object
The charity campaign that the broadcaster is currently running.
  • Constructor Details

    • CharityCampaign

      public CharityCampaign()
  • Method Details

    • getId

      public String getId()
      An ID that uniquely identifies the charity campaign.
    • getBroadcasterId

      public String getBroadcasterId()
      An ID that uniquely identifies the broadcaster that’s running the campaign.
    • getBroadcasterName

      public String getBroadcasterName()
      The broadcaster’s display name.
    • getBroadcasterLogin

      public String getBroadcasterLogin()
      The broadcaster’s login name.
    • getCharityName

      public String getCharityName()
      The charity’s name.
    • getCharityDescription

      public String getCharityDescription()
      A description of the charity.
    • getCharityLogo

      public String getCharityLogo()
      A URL to an image of the charity’s logo.

      The image’s type is PNG and its size is 100px X 100px.

    • getCharityWebsite

      public String getCharityWebsite()
      A URL to the charity’s website.
    • getCurrentAmount

      public DonationAmount getCurrentAmount()
      An object that contains the current amount of donations that the campaign has received.
    • getTargetAmount

      @Nullable public @Nullable DonationAmount getTargetAmount()
      An object that contains the amount of money that the campaign is trying to raise.

      This field may be null if the broadcaster has not defined a target goal.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object