Package dev.adlin.vts4j.core.event.impl
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
ConstructorsConstructorDescriptionModelClickedEvent(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 aModelClickedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectReturns the value of theartMeshHitsrecord component.Returns the value of theclickedArtMeshCountrecord component.com.google.gson.JsonObjectReturns the value of theclickPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theloadedModelIdrecord component.Returns the value of theloadedModelNamerecord component.Returns the value of themodelLoadedrecord component.Returns the value of themodelWasClickedrecord component.Returns the value of themouseButtonIdrecord component.final StringtoString()Returns a string representation of this record class.com.google.gson.JsonObjectReturns the value of thewindowSizerecord component.
-
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 aModelClickedEventrecord class.- Parameters:
modelLoaded- the value for themodelLoadedrecord componentloadedModelId- the value for theloadedModelIdrecord componentloadedModelName- the value for theloadedModelNamerecord componentmodelWasClicked- the value for themodelWasClickedrecord componentmouseButtonId- the value for themouseButtonIdrecord componentclickPosition- the value for theclickPositionrecord componentwindowSize- the value for thewindowSizerecord componentclickedArtMeshCount- the value for theclickedArtMeshCountrecord componentartMeshHits- the value for theartMeshHitsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
modelLoaded
Returns the value of themodelLoadedrecord component.- Returns:
- the value of the
modelLoadedrecord component
-
loadedModelId
Returns the value of theloadedModelIdrecord component.- Returns:
- the value of the
loadedModelIdrecord component
-
loadedModelName
Returns the value of theloadedModelNamerecord component.- Returns:
- the value of the
loadedModelNamerecord component
-
modelWasClicked
Returns the value of themodelWasClickedrecord component.- Returns:
- the value of the
modelWasClickedrecord component
-
mouseButtonId
Returns the value of themouseButtonIdrecord component.- Returns:
- the value of the
mouseButtonIdrecord component
-
clickPosition
@SerializedName("clickPosition") public com.google.gson.JsonObject clickPosition()Returns the value of theclickPositionrecord component.- Returns:
- the value of the
clickPositionrecord component
-
windowSize
@SerializedName("windowSize") public com.google.gson.JsonObject windowSize()Returns the value of thewindowSizerecord component.- Returns:
- the value of the
windowSizerecord component
-
clickedArtMeshCount
Returns the value of theclickedArtMeshCountrecord component.- Returns:
- the value of the
clickedArtMeshCountrecord component
-
artMeshHits
@SerializedName("artMeshHits") public com.google.gson.JsonObject artMeshHits()Returns the value of theartMeshHitsrecord component.- Returns:
- the value of the
artMeshHitsrecord component
-