Record Class ModelClickedEvent

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

public record ModelClickedEvent(Boolean modelLoaded, String loadedModelId, String loadedModelName, Boolean modelWasClicked, Integer mouseButtonId, com.google.gson.JsonObject clickPosition, com.google.gson.JsonObject windowSize, Integer clickedArtMeshCount, com.google.gson.JsonObject artMeshHits) extends Record implements Event
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelClickedEvent(Boolean modelLoaded, String loadedModelId, String loadedModelName, Boolean modelWasClicked, Integer mouseButtonId, com.google.gson.JsonObject clickPosition, com.google.gson.JsonObject windowSize, Integer clickedArtMeshCount, com.google.gson.JsonObject artMeshHits)
    Creates an instance of a ModelClickedEvent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.gson.JsonObject
    Returns the value of the artMeshHits record component.
    Returns the value of the clickedArtMeshCount record component.
    com.google.gson.JsonObject
    Returns the value of the clickPosition record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the loadedModelId record component.
    Returns the value of the loadedModelName record component.
    Returns the value of the modelLoaded record component.
    Returns the value of the modelWasClicked record component.
    Returns the value of the mouseButtonId record component.
    final String
    Returns a string representation of this record class.
    com.google.gson.JsonObject
    Returns the value of the windowSize record component.

    Methods inherited from class java.lang.Object

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

    • ModelClickedEvent

      public ModelClickedEvent(Boolean modelLoaded, String loadedModelId, String loadedModelName, Boolean modelWasClicked, Integer mouseButtonId, com.google.gson.JsonObject clickPosition, com.google.gson.JsonObject windowSize, Integer clickedArtMeshCount, com.google.gson.JsonObject artMeshHits)
      Creates an instance of a ModelClickedEvent record class.
      Parameters:
      modelLoaded - the value for the modelLoaded record component
      loadedModelId - the value for the loadedModelId record component
      loadedModelName - the value for the loadedModelName record component
      modelWasClicked - the value for the modelWasClicked record component
      mouseButtonId - the value for the mouseButtonId record component
      clickPosition - the value for the clickPosition record component
      windowSize - the value for the windowSize record component
      clickedArtMeshCount - the value for the clickedArtMeshCount record component
      artMeshHits - the value for the artMeshHits 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.
    • modelLoaded

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

      @SerializedName("loadedModelID") public String loadedModelId()
      Returns the value of the loadedModelId record component.
      Returns:
      the value of the loadedModelId record component
    • loadedModelName

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

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

      @SerializedName("mouseButtonID") public Integer mouseButtonId()
      Returns the value of the mouseButtonId record component.
      Returns:
      the value of the mouseButtonId record component
    • clickPosition

      @SerializedName("clickPosition") public com.google.gson.JsonObject clickPosition()
      Returns the value of the clickPosition record component.
      Returns:
      the value of the clickPosition record component
    • windowSize

      @SerializedName("windowSize") public com.google.gson.JsonObject windowSize()
      Returns the value of the windowSize record component.
      Returns:
      the value of the windowSize record component
    • clickedArtMeshCount

      @SerializedName("clickedArtMeshCount") public Integer clickedArtMeshCount()
      Returns the value of the clickedArtMeshCount record component.
      Returns:
      the value of the clickedArtMeshCount record component
    • artMeshHits

      @SerializedName("artMeshHits") public com.google.gson.JsonObject artMeshHits()
      Returns the value of the artMeshHits record component.
      Returns:
      the value of the artMeshHits record component