Module it.auties.cobalt
Record Class PublicServiceAnnouncementStatus
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.model.PublicServiceAnnouncementStatus
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thecampaignExpirationTimestampSecondsrecord component.private final StringThe field for thecampaignIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPublicServiceAnnouncementStatus(String campaignId, long campaignExpirationTimestampSeconds) Creates an instance of aPublicServiceAnnouncementStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecampaignExpirationTimestampSecondsrecord component.Returns the value of thecampaignIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
campaignId
The field for thecampaignIdrecord component. -
campaignExpirationTimestampSeconds
private final long campaignExpirationTimestampSecondsThe field for thecampaignExpirationTimestampSecondsrecord component.
-
-
Constructor Details
-
PublicServiceAnnouncementStatus
Creates an instance of aPublicServiceAnnouncementStatusrecord class.- Parameters:
campaignId- the value for thecampaignIdrecord componentcampaignExpirationTimestampSeconds- the value for thecampaignExpirationTimestampSecondsrecord component
-
-
Method Details
-
campaignExpirationTimestamp
-
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 '=='. -
campaignId
Returns the value of thecampaignIdrecord component.- Returns:
- the value of the
campaignIdrecord component
-
campaignExpirationTimestampSeconds
public long campaignExpirationTimestampSeconds()Returns the value of thecampaignExpirationTimestampSecondsrecord component.- Returns:
- the value of the
campaignExpirationTimestampSecondsrecord component
-