Record Class PollMedia
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.PollMedia
- All Implemented Interfaces:
Serializable, ApiResult
public record PollMedia(@Nullable Animation animation, @Nullable Audio audio, @Nullable Document document, @Nullable LivePhoto livePhoto, @Nullable Location location, @Nullable PhotoSize[] photo, @Nullable Sticker sticker, @Nullable Venue venue, @Nullable Video video)
extends Record
implements ApiResult
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPollMedia(@Nullable Animation animation, @Nullable Audio audio, @Nullable Document document, @Nullable LivePhoto livePhoto, @Nullable Location location, @Nullable PhotoSize[] photo, @Nullable Sticker sticker, @Nullable Venue venue, @Nullable Video video) Creates an instance of aPollMediarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable AnimationReturns the value of theanimationrecord component.@Nullable Audioaudio()Returns the value of theaudiorecord component.@Nullable Documentdocument()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable LivePhotoReturns the value of thelivePhotorecord component.@Nullable Locationlocation()Returns the value of thelocationrecord component.static @NotNull PollMedia.Builder@Nullable PhotoSize[]photo()Returns the value of thephotorecord component.@Nullable Stickersticker()Returns the value of thestickerrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Venuevenue()Returns the value of thevenuerecord component.@Nullable Videovideo()Returns the value of thevideorecord component.
-
Constructor Details
-
PollMedia
public PollMedia(@Nullable @Nullable Animation animation, @Nullable @Nullable Audio audio, @Nullable @Nullable Document document, @Nullable @Nullable LivePhoto livePhoto, @Nullable @Nullable Location location, @Nullable @Nullable PhotoSize[] photo, @Nullable @Nullable Sticker sticker, @Nullable @Nullable Venue venue, @Nullable @Nullable Video video) Creates an instance of aPollMediarecord class.- Parameters:
animation- the value for theanimationrecord componentaudio- the value for theaudiorecord componentdocument- the value for thedocumentrecord componentlivePhoto- the value for thelivePhotorecord componentlocation- the value for thelocationrecord componentphoto- the value for thephotorecord componentsticker- the value for thestickerrecord componentvenue- the value for thevenuerecord componentvideo- the value for thevideorecord component
-
-
Method Details
-
ofBuilder
-
toBuilder
-
toString
-
hashCode
-
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). -
animation
Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-
audio
Returns the value of theaudiorecord component.- Returns:
- the value of the
audiorecord component
-
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
livePhoto
Returns the value of thelivePhotorecord component.- Returns:
- the value of the
livePhotorecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord component
-
sticker
Returns the value of thestickerrecord component.- Returns:
- the value of the
stickerrecord component
-
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-
video
Returns the value of thevideorecord component.- Returns:
- the value of the
videorecord component
-