Module it.auties.cobalt
Record Class CompanionProperties
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.CompanionProperties
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record CompanionProperties(String os, Version version, CompanionProperties.PlatformType platformType, boolean requireFullSync, HistorySyncConfig historySyncConfig)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HistorySyncConfigThe field for thehistorySyncConfigrecord component.private final StringThe field for theosrecord component.private final CompanionProperties.PlatformTypeThe field for theplatformTyperecord component.private final booleanThe field for therequireFullSyncrecord component.private final VersionThe field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCompanionProperties(String os, Version version, CompanionProperties.PlatformType platformType, boolean requireFullSync, HistorySyncConfig historySyncConfig) Creates an instance of aCompanionPropertiesrecord 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.Returns the value of thehistorySyncConfigrecord component.os()Returns the value of theosrecord component.Returns the value of theplatformTyperecord component.booleanReturns the value of therequireFullSyncrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
os
The field for theosrecord component. -
version
The field for theversionrecord component. -
platformType
The field for theplatformTyperecord component. -
requireFullSync
private final boolean requireFullSyncThe field for therequireFullSyncrecord component. -
historySyncConfig
The field for thehistorySyncConfigrecord component.
-
-
Constructor Details
-
CompanionProperties
public CompanionProperties(String os, Version version, CompanionProperties.PlatformType platformType, boolean requireFullSync, HistorySyncConfig historySyncConfig) Creates an instance of aCompanionPropertiesrecord class.- Parameters:
os- the value for theosrecord componentversion- the value for theversionrecord componentplatformType- the value for theplatformTyperecord componentrequireFullSync- the value for therequireFullSyncrecord componenthistorySyncConfig- the value for thehistorySyncConfigrecord 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 '=='. -
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
platformType
Returns the value of theplatformTyperecord component.- Returns:
- the value of the
platformTyperecord component
-
requireFullSync
public boolean requireFullSync()Returns the value of therequireFullSyncrecord component.- Returns:
- the value of the
requireFullSyncrecord component
-
historySyncConfig
Returns the value of thehistorySyncConfigrecord component.- Returns:
- the value of the
historySyncConfigrecord component
-