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 String
The field for theavatarUrl
record component.private final String
The field for thebannerUrl
record component.private final String
The field for thedescription
record component.private final String
The field for theemail
record component.private final UUID
The field for theid
record component.private final boolean
The field for theindexed
record component.private final boolean
The field for thepaid
record component.private final String
The field for thepublicLocation
record component.private final String
The field for thepublicUrlLocation
record component.private final String
The field for thetitle
record component.private final UUID
The field for theuserId
record component.private final boolean
The field for theverified
record 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 aAdvertiserResponseDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavatarUrl
record component.Returns the value of thebannerUrl
record component.Returns the value of thedescription
record component.email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
indexed()
Returns the value of theindexed
record component.boolean
paid()
Returns the value of thepaid
record component.Returns the value of thepublicLocation
record component.Returns the value of thepublicUrlLocation
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.userId()
Returns the value of theuserId
record component.boolean
verified()
Returns the value of theverified
record component.
-
Field Details
-
id
The field for theid
record component. -
title
The field for thetitle
record component. -
description
The field for thedescription
record component. -
bannerUrl
The field for thebannerUrl
record component. -
avatarUrl
The field for theavatarUrl
record component. -
publicLocation
The field for thepublicLocation
record component. -
publicUrlLocation
The field for thepublicUrlLocation
record component. -
indexed
private final boolean indexedThe field for theindexed
record component. -
paid
private final boolean paidThe field for thepaid
record component. -
verified
private final boolean verifiedThe field for theverified
record component. -
userId
The field for theuserId
record component. -
email
The field for theemail
record 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 aAdvertiserResponseDTO
record class.- Parameters:
id
- the value for theid
record componenttitle
- the value for thetitle
record componentdescription
- the value for thedescription
record componentbannerUrl
- the value for thebannerUrl
record componentavatarUrl
- the value for theavatarUrl
record componentpublicLocation
- the value for thepublicLocation
record componentpublicUrlLocation
- the value for thepublicUrlLocation
record componentindexed
- the value for theindexed
record componentpaid
- the value for thepaid
record componentverified
- the value for theverified
record componentuserId
- the value for theuserId
record componentemail
- the value for theemail
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 '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
bannerUrl
Returns the value of thebannerUrl
record component.- Returns:
- the value of the
bannerUrl
record component
-
avatarUrl
Returns the value of theavatarUrl
record component.- Returns:
- the value of the
avatarUrl
record component
-
publicLocation
Returns the value of thepublicLocation
record component.- Returns:
- the value of the
publicLocation
record component
-
publicUrlLocation
Returns the value of thepublicUrlLocation
record component.- Returns:
- the value of the
publicUrlLocation
record component
-
indexed
public boolean indexed()Returns the value of theindexed
record component.- Returns:
- the value of the
indexed
record component
-
paid
public boolean paid()Returns the value of thepaid
record component.- Returns:
- the value of the
paid
record component
-
verified
public boolean verified()Returns the value of theverified
record component.- Returns:
- the value of the
verified
record component
-
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-