Record Class InputLocationMessageContent
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputLocationMessageContent
- All Implemented Interfaces:
Serializable,ApiResult,InputMessageContent
public record InputLocationMessageContent(float latitude, float longitude, @Nullable Float horizontalAccuracy, int livePeriod, int heading, int proximityAlertRadius)
extends Record
implements InputMessageContent
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputLocationMessageContent(float latitude, float longitude, @Nullable Float horizontalAccuracy, int livePeriod, int heading, int proximityAlertRadius) Creates an instance of aInputLocationMessageContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheading()Returns the value of theheadingrecord component.@Nullable FloatReturns the value of thehorizontalAccuracyrecord component.floatlatitude()Returns the value of thelatituderecord component.intReturns the value of thelivePeriodrecord component.floatReturns the value of thelongituderecord component.intReturns the value of theproximityAlertRadiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputLocationMessageContent
public InputLocationMessageContent(float latitude, float longitude, @Nullable @Nullable Float horizontalAccuracy, int livePeriod, int heading, int proximityAlertRadius) Creates an instance of aInputLocationMessageContentrecord class.- Parameters:
latitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componenthorizontalAccuracy- the value for thehorizontalAccuracyrecord componentlivePeriod- the value for thelivePeriodrecord componentheading- the value for theheadingrecord componentproximityAlertRadius- the value for theproximityAlertRadiusrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
latitude
public float latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
public float longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
horizontalAccuracy
Returns the value of thehorizontalAccuracyrecord component.- Returns:
- the value of the
horizontalAccuracyrecord component
-
livePeriod
public int livePeriod()Returns the value of thelivePeriodrecord component.- Returns:
- the value of the
livePeriodrecord component
-
heading
public int heading()Returns the value of theheadingrecord component.- Returns:
- the value of the
headingrecord component
-
proximityAlertRadius
public int proximityAlertRadius()Returns the value of theproximityAlertRadiusrecord component.- Returns:
- the value of the
proximityAlertRadiusrecord component
-