Record Class HotkeyTriggeredEvent

java.lang.Object
java.lang.Record
dev.adlin.vts4j.core.event.impl.HotkeyTriggeredEvent
All Implemented Interfaces:
Event

public record HotkeyTriggeredEvent(String hotkeyId, String hotkeyName, String hotkeyAction, String hotkeyFile, Boolean hotkeyTriggeredByAPI, String modelId, String modelName, Boolean isLive2DItem) extends Record implements Event
  • Constructor Details

    • HotkeyTriggeredEvent

      public HotkeyTriggeredEvent(String hotkeyId, String hotkeyName, String hotkeyAction, String hotkeyFile, Boolean hotkeyTriggeredByAPI, String modelId, String modelName, Boolean isLive2DItem)
      Creates an instance of a HotkeyTriggeredEvent record class.
      Parameters:
      hotkeyId - the value for the hotkeyId record component
      hotkeyName - the value for the hotkeyName record component
      hotkeyAction - the value for the hotkeyAction record component
      hotkeyFile - the value for the hotkeyFile record component
      hotkeyTriggeredByAPI - the value for the hotkeyTriggeredByAPI record component
      modelId - the value for the modelId record component
      modelName - the value for the modelName record component
      isLive2DItem - the value for the isLive2DItem record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hotkeyId

      @SerializedName("hotkeyID") public String hotkeyId()
      Returns the value of the hotkeyId record component.
      Returns:
      the value of the hotkeyId record component
    • hotkeyName

      @SerializedName("hotkeyName") public String hotkeyName()
      Returns the value of the hotkeyName record component.
      Returns:
      the value of the hotkeyName record component
    • hotkeyAction

      @SerializedName("hotkeyAction") public String hotkeyAction()
      Returns the value of the hotkeyAction record component.
      Returns:
      the value of the hotkeyAction record component
    • hotkeyFile

      @SerializedName("hotkeyFile") public String hotkeyFile()
      Returns the value of the hotkeyFile record component.
      Returns:
      the value of the hotkeyFile record component
    • hotkeyTriggeredByAPI

      @SerializedName("hotkeyTriggeredByAPI") public Boolean hotkeyTriggeredByAPI()
      Returns the value of the hotkeyTriggeredByAPI record component.
      Returns:
      the value of the hotkeyTriggeredByAPI record component
    • modelId

      @SerializedName("modelID") public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • modelName

      @SerializedName("modelName") public String modelName()
      Returns the value of the modelName record component.
      Returns:
      the value of the modelName record component
    • isLive2DItem

      @SerializedName("isLive2DItem") public Boolean isLive2DItem()
      Returns the value of the isLive2DItem record component.
      Returns:
      the value of the isLive2DItem record component