java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.UserAgent
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record UserAgent(UserAgent.PlatformType platform, Version appVersion, String mcc, String mnc, String osVersion, String manufacturer, String device, String osBuildNumber, String phoneId, UserAgent.ReleaseChannel releaseChannel, String localeLanguageIso6391, String localeCountryIso31661Alpha2, String deviceBoard)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VersionThe field for theappVersionrecord component.private final StringThe field for thedevicerecord component.private final StringThe field for thedeviceBoardrecord component.private final StringThe field for thelocaleCountryIso31661Alpha2record component.private final StringThe field for thelocaleLanguageIso6391record component.private final StringThe field for themanufacturerrecord component.private final StringThe field for themccrecord component.private final StringThe field for themncrecord component.private final StringThe field for theosBuildNumberrecord component.private final StringThe field for theosVersionrecord component.private final StringThe field for thephoneIdrecord component.private final UserAgent.PlatformTypeThe field for theplatformrecord component.private final UserAgent.ReleaseChannelThe field for thereleaseChannelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUserAgent(UserAgent.PlatformType platform, Version appVersion, String mcc, String mnc, String osVersion, String manufacturer, String device, String osBuildNumber, String phoneId, UserAgent.ReleaseChannel releaseChannel, String localeLanguageIso6391, String localeCountryIso31661Alpha2, String deviceBoard) Creates an instance of aUserAgentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappVersionrecord component.device()Returns the value of thedevicerecord component.Returns the value of thedeviceBoardrecord 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 thelocaleCountryIso31661Alpha2record component.Returns the value of thelocaleLanguageIso6391record component.Returns the value of themanufacturerrecord component.mcc()Returns the value of themccrecord component.mnc()Returns the value of themncrecord component.Returns the value of theosBuildNumberrecord component.Returns the value of theosVersionrecord component.phoneId()Returns the value of thephoneIdrecord component.platform()Returns the value of theplatformrecord component.Returns the value of thereleaseChannelrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
platform
The field for theplatformrecord component. -
appVersion
The field for theappVersionrecord component. -
mcc
The field for themccrecord component. -
mnc
The field for themncrecord component. -
osVersion
The field for theosVersionrecord component. -
manufacturer
The field for themanufacturerrecord component. -
device
The field for thedevicerecord component. -
osBuildNumber
The field for theosBuildNumberrecord component. -
phoneId
The field for thephoneIdrecord component. -
releaseChannel
The field for thereleaseChannelrecord component. -
localeLanguageIso6391
The field for thelocaleLanguageIso6391record component. -
localeCountryIso31661Alpha2
The field for thelocaleCountryIso31661Alpha2record component. -
deviceBoard
The field for thedeviceBoardrecord component.
-
-
Constructor Details
-
UserAgent
public UserAgent(UserAgent.PlatformType platform, Version appVersion, String mcc, String mnc, String osVersion, String manufacturer, String device, String osBuildNumber, String phoneId, UserAgent.ReleaseChannel releaseChannel, String localeLanguageIso6391, String localeCountryIso31661Alpha2, String deviceBoard) Creates an instance of aUserAgentrecord class.- Parameters:
platform- the value for theplatformrecord componentappVersion- the value for theappVersionrecord componentmcc- the value for themccrecord componentmnc- the value for themncrecord componentosVersion- the value for theosVersionrecord componentmanufacturer- the value for themanufacturerrecord componentdevice- the value for thedevicerecord componentosBuildNumber- the value for theosBuildNumberrecord componentphoneId- the value for thephoneIdrecord componentreleaseChannel- the value for thereleaseChannelrecord componentlocaleLanguageIso6391- the value for thelocaleLanguageIso6391record componentlocaleCountryIso31661Alpha2- the value for thelocaleCountryIso31661Alpha2record componentdeviceBoard- the value for thedeviceBoardrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
appVersion
Returns the value of theappVersionrecord component.- Returns:
- the value of the
appVersionrecord component
-
mcc
Returns the value of themccrecord component.- Returns:
- the value of the
mccrecord component
-
mnc
Returns the value of themncrecord component.- Returns:
- the value of the
mncrecord component
-
osVersion
Returns the value of theosVersionrecord component.- Returns:
- the value of the
osVersionrecord component
-
manufacturer
Returns the value of themanufacturerrecord component.- Returns:
- the value of the
manufacturerrecord component
-
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-
osBuildNumber
Returns the value of theosBuildNumberrecord component.- Returns:
- the value of the
osBuildNumberrecord component
-
phoneId
Returns the value of thephoneIdrecord component.- Returns:
- the value of the
phoneIdrecord component
-
releaseChannel
Returns the value of thereleaseChannelrecord component.- Returns:
- the value of the
releaseChannelrecord component
-
localeLanguageIso6391
Returns the value of thelocaleLanguageIso6391record component.- Returns:
- the value of the
localeLanguageIso6391record component
-
localeCountryIso31661Alpha2
Returns the value of thelocaleCountryIso31661Alpha2record component.- Returns:
- the value of the
localeCountryIso31661Alpha2record component
-
deviceBoard
Returns the value of thedeviceBoardrecord component.- Returns:
- the value of the
deviceBoardrecord component
-