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 HistorySyncConfig
The field for thehistorySyncConfig
record component.private final String
The field for theos
record component.private final CompanionProperties.PlatformType
The field for theplatformType
record component.private final boolean
The field for therequireFullSync
record component.private final Version
The field for theversion
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCompanionProperties
(String os, Version version, CompanionProperties.PlatformType platformType, boolean requireFullSync, HistorySyncConfig historySyncConfig) Creates an instance of aCompanionProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehistorySyncConfig
record component.os()
Returns the value of theos
record component.Returns the value of theplatformType
record component.boolean
Returns the value of therequireFullSync
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Field Details
-
os
The field for theos
record component. -
version
The field for theversion
record component. -
platformType
The field for theplatformType
record component. -
requireFullSync
private final boolean requireFullSyncThe field for therequireFullSync
record component. -
historySyncConfig
The field for thehistorySyncConfig
record component.
-
-
Constructor Details
-
CompanionProperties
public CompanionProperties(String os, Version version, CompanionProperties.PlatformType platformType, boolean requireFullSync, HistorySyncConfig historySyncConfig) Creates an instance of aCompanionProperties
record class.- Parameters:
os
- the value for theos
record componentversion
- the value for theversion
record componentplatformType
- the value for theplatformType
record componentrequireFullSync
- the value for therequireFullSync
record componenthistorySyncConfig
- the value for thehistorySyncConfig
record 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 theos
record component.- Returns:
- the value of the
os
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
platformType
Returns the value of theplatformType
record component.- Returns:
- the value of the
platformType
record component
-
requireFullSync
public boolean requireFullSync()Returns the value of therequireFullSync
record component.- Returns:
- the value of the
requireFullSync
record component
-
historySyncConfig
Returns the value of thehistorySyncConfig
record component.- Returns:
- the value of the
historySyncConfig
record component
-