Record Class St1DataDeviceLocationHistoryGet
java.lang.Object
java.lang.Record
com.io7m.stonesignal.protocol.data.v1.St1DataDeviceLocationHistoryGet
- All Implemented Interfaces:
St1DataMessageType
public record St1DataDeviceLocationHistoryGet(UUID deviceId, OffsetDateTime timeStart, int count)
extends Record
implements St1DataMessageType
Get the location history of a device.
-
Constructor Summary
ConstructorsConstructorDescriptionSt1DataDeviceLocationHistoryGet(UUID deviceId, OffsetDateTime timeStart, int count) Creates an instance of aSt1DataDeviceLocationHistoryGetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.deviceId()Returns the value of thedeviceIdrecord 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 thetimeStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
St1DataDeviceLocationHistoryGet
public St1DataDeviceLocationHistoryGet(@JsonPropertyDescription("The device ID.") UUID deviceId, @JsonPropertyDescription("The start time.") OffsetDateTime timeStart, @JsonPropertyDescription("The maximum number of events to return.") int count) Creates an instance of aSt1DataDeviceLocationHistoryGetrecord class.- Parameters:
deviceId- the value for thedeviceIdrecord componenttimeStart- the value for thetimeStartrecord componentcount- the value for thecountrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
deviceId
Returns the value of thedeviceIdrecord component.- Returns:
- the value of the
deviceIdrecord component
-
timeStart
Returns the value of thetimeStartrecord component.- Returns:
- the value of the
timeStartrecord component
-
count
@JsonPropertyDescription("The maximum number of events to return.") public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-