java.lang.Object
java.lang.Record
it.auties.whatsapp.model.setting.EphemeralSettings
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Setting
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedurationrecord component.private final longThe field for thetimestampSecondsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEphemeralSettings(int duration, long timestampSeconds) Creates an instance of aEphemeralSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns when this setting was toggledlongReturns the value of thetimestampSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
duration
private final int durationThe field for thedurationrecord component. -
timestampSeconds
private final long timestampSecondsThe field for thetimestampSecondsrecord component.
-
-
Constructor Details
-
EphemeralSettings
public EphemeralSettings(int duration, long timestampSeconds) Creates an instance of aEphemeralSettingsrecord class.- Parameters:
duration- the value for thedurationrecord componenttimestampSeconds- the value for thetimestampSecondsrecord component
-
-
Method Details
-
timestamp
Returns when this setting was toggled- Returns:
- an optional
-
indexName
-
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 with '=='. -
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
timestampSeconds
public long timestampSeconds()Returns the value of thetimestampSecondsrecord component.- Returns:
- the value of the
timestampSecondsrecord component
-