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:
  • 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 a PollMedia record class.
      Parameters:
      animation - the value for the animation record component
      audio - the value for the audio record component
      document - the value for the document record component
      livePhoto - the value for the livePhoto record component
      location - the value for the location record component
      photo - the value for the photo record component
      sticker - the value for the sticker record component
      venue - the value for the venue record component
      video - the value for the video record component
  • Method Details

    • ofBuilder

      @NotNull public static @NotNull PollMedia.Builder ofBuilder()
    • toBuilder

      public PollMedia.Builder toBuilder()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • animation

      @Nullable public @Nullable Animation animation()
      Returns the value of the animation record component.
      Returns:
      the value of the animation record component
    • audio

      @Nullable public @Nullable Audio audio()
      Returns the value of the audio record component.
      Returns:
      the value of the audio record component
    • document

      @Nullable public @Nullable Document document()
      Returns the value of the document record component.
      Returns:
      the value of the document record component
    • livePhoto

      @Nullable public @Nullable LivePhoto livePhoto()
      Returns the value of the livePhoto record component.
      Returns:
      the value of the livePhoto record component
    • location

      @Nullable public @Nullable Location location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • photo

      @Nullable public @Nullable PhotoSize[] photo()
      Returns the value of the photo record component.
      Returns:
      the value of the photo record component
    • sticker

      @Nullable public @Nullable Sticker sticker()
      Returns the value of the sticker record component.
      Returns:
      the value of the sticker record component
    • venue

      @Nullable public @Nullable Venue venue()
      Returns the value of the venue record component.
      Returns:
      the value of the venue record component
    • video

      @Nullable public @Nullable Video video()
      Returns the value of the video record component.
      Returns:
      the value of the video record component