Record Class ModelAnimationEvent

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

public record ModelAnimationEvent(String animationEventType, Double animationEventTime, String animationEventData, String animationName, Double animationLength, Boolean isIdleAnimation, String modelId, String modelName, Boolean isLive2DItem) extends Record implements Event
  • Constructor Details

    • ModelAnimationEvent

      public ModelAnimationEvent(String animationEventType, Double animationEventTime, String animationEventData, String animationName, Double animationLength, Boolean isIdleAnimation, String modelId, String modelName, Boolean isLive2DItem)
      Creates an instance of a ModelAnimationEvent record class.
      Parameters:
      animationEventType - the value for the animationEventType record component
      animationEventTime - the value for the animationEventTime record component
      animationEventData - the value for the animationEventData record component
      animationName - the value for the animationName record component
      animationLength - the value for the animationLength record component
      isIdleAnimation - the value for the isIdleAnimation 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.
    • animationEventType

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

      @SerializedName("animationEventTime") public Double animationEventTime()
      Returns the value of the animationEventTime record component.
      Returns:
      the value of the animationEventTime record component
    • animationEventData

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

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

      @SerializedName("animationLength") public Double animationLength()
      Returns the value of the animationLength record component.
      Returns:
      the value of the animationLength record component
    • isIdleAnimation

      @SerializedName("isIdleAnimation") public Boolean isIdleAnimation()
      Returns the value of the isIdleAnimation record component.
      Returns:
      the value of the isIdleAnimation 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