Class Commercial

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

public class Commercial
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    Commercial()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.Integer getLength()
    Length of the triggered commercial
    java.lang.String getMessage()
    Provides contextual information on why the request failed
    java.lang.Integer getRetryAfter()
    Seconds until the next commercial can be served on this channel
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Commercial

      public Commercial()
  • Method Details

    • getLength

      public java.lang.Integer getLength()
      Length of the triggered commercial
    • getMessage

      public java.lang.String getMessage()
      Provides contextual information on why the request failed
    • getRetryAfter

      public java.lang.Integer getRetryAfter()
      Seconds until the next commercial can be served on this channel
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object