Package com.alpaca.dto.response
Record Class AdvertiserResponseDTO
java.lang.Object
java.lang.Record
com.alpaca.dto.response.AdvertiserResponseDTO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theavatarUrlrecord component.private final StringThe field for thebannerUrlrecord component.private final StringThe field for thedescriptionrecord component.private final StringThe field for theemailrecord component.private final UUIDThe field for theidrecord component.private final booleanThe field for theindexedrecord component.private final booleanThe field for thepaidrecord component.private final StringThe field for thepublicLocationrecord component.private final StringThe field for thepublicUrlLocationrecord component.private final StringThe field for thetitlerecord component.private final UUIDThe field for theuserIdrecord component.private final booleanThe field for theverifiedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAdvertiserResponseDTO(UUID id, String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, UUID userId, String email) Creates an instance of aAdvertiserResponseDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavatarUrlrecord component.Returns the value of thebannerUrlrecord component.Returns the value of thedescriptionrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanindexed()Returns the value of theindexedrecord component.booleanpaid()Returns the value of thepaidrecord component.Returns the value of thepublicLocationrecord component.Returns the value of thepublicUrlLocationrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.booleanverified()Returns the value of theverifiedrecord component.
-
Field Details
-
id
The field for theidrecord component. -
title
The field for thetitlerecord component. -
description
The field for thedescriptionrecord component. -
bannerUrl
The field for thebannerUrlrecord component. -
avatarUrl
The field for theavatarUrlrecord component. -
publicLocation
The field for thepublicLocationrecord component. -
publicUrlLocation
The field for thepublicUrlLocationrecord component. -
indexed
private final boolean indexedThe field for theindexedrecord component. -
paid
private final boolean paidThe field for thepaidrecord component. -
verified
private final boolean verifiedThe field for theverifiedrecord component. -
userId
The field for theuserIdrecord component. -
email
The field for theemailrecord component.
-
-
Constructor Details
-
AdvertiserResponseDTO
public AdvertiserResponseDTO(UUID id, String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, UUID userId, String email) Creates an instance of aAdvertiserResponseDTOrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentbannerUrl- the value for thebannerUrlrecord componentavatarUrl- the value for theavatarUrlrecord componentpublicLocation- the value for thepublicLocationrecord componentpublicUrlLocation- the value for thepublicUrlLocationrecord componentindexed- the value for theindexedrecord componentpaid- the value for thepaidrecord componentverified- the value for theverifiedrecord componentuserId- the value for theuserIdrecord componentemail- the value for theemailrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
bannerUrl
Returns the value of thebannerUrlrecord component.- Returns:
- the value of the
bannerUrlrecord component
-
avatarUrl
Returns the value of theavatarUrlrecord component.- Returns:
- the value of the
avatarUrlrecord component
-
publicLocation
Returns the value of thepublicLocationrecord component.- Returns:
- the value of the
publicLocationrecord component
-
publicUrlLocation
Returns the value of thepublicUrlLocationrecord component.- Returns:
- the value of the
publicUrlLocationrecord component
-
indexed
public boolean indexed()Returns the value of theindexedrecord component.- Returns:
- the value of the
indexedrecord component
-
paid
public boolean paid()Returns the value of thepaidrecord component.- Returns:
- the value of the
paidrecord component
-
verified
public boolean verified()Returns the value of theverifiedrecord component.- Returns:
- the value of the
verifiedrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-