java.lang.Object
java.lang.Record
it.auties.whatsapp.model.info.ProductListInfo
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Info
public record ProductListInfo(List<ProductSection> productSections, ProductListHeaderImage headerImage, Jid seller)
extends Record
implements Info, it.auties.protobuf.model.ProtobufMessage
A model class that holds the information related to a list of products.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ProductListHeaderImageThe field for theheaderImagerecord component.private final List<ProductSection> The field for theproductSectionsrecord component.private final JidThe field for thesellerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionProductListInfo(List<ProductSection> productSections, ProductListHeaderImage headerImage, Jid seller) Creates an instance of aProductListInforecord 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 theheaderImagerecord component.Returns the value of theproductSectionsrecord component.seller()Returns the value of thesellerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
productSections
The field for theproductSectionsrecord component. -
headerImage
The field for theheaderImagerecord component. -
seller
The field for thesellerrecord component.
-
-
Constructor Details
-
ProductListInfo
public ProductListInfo(List<ProductSection> productSections, ProductListHeaderImage headerImage, Jid seller) Creates an instance of aProductListInforecord class.- Parameters:
productSections- the value for theproductSectionsrecord componentheaderImage- the value for theheaderImagerecord componentseller- the value for thesellerrecord 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). -
productSections
Returns the value of theproductSectionsrecord component.- Returns:
- the value of the
productSectionsrecord component
-
headerImage
Returns the value of theheaderImagerecord component.- Returns:
- the value of the
headerImagerecord component
-
seller
Returns the value of thesellerrecord component.- Returns:
- the value of the
sellerrecord component
-