Record Class Instance.Configuration.MediaAttachments

java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Instance.Configuration.MediaAttachments
Enclosing class:
Instance.Configuration

public static record Instance.Configuration.MediaAttachments(List<String> supported_mime_types, Integer image_size_limit, Integer image_matrix_limit, Integer video_size_limit, Integer video_frame_rate_limit, Integer video_matrix_limit) extends Record
  • Constructor Details

    • MediaAttachments

      public MediaAttachments(List<String> supported_mime_types, Integer image_size_limit, Integer image_matrix_limit, Integer video_size_limit, Integer video_frame_rate_limit, Integer video_matrix_limit)
      Creates an instance of a MediaAttachments record class.
      Parameters:
      supported_mime_types - the value for the supported_mime_types record component
      image_size_limit - the value for the image_size_limit record component
      image_matrix_limit - the value for the image_matrix_limit record component
      video_size_limit - the value for the video_size_limit record component
      video_frame_rate_limit - the value for the video_frame_rate_limit record component
      video_matrix_limit - the value for the video_matrix_limit record component
  • Method Details

    • 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.
    • supported_mime_types

      public List<String> supported_mime_types()
      Returns the value of the supported_mime_types record component.
      Returns:
      the value of the supported_mime_types record component
    • image_size_limit

      public Integer image_size_limit()
      Returns the value of the image_size_limit record component.
      Returns:
      the value of the image_size_limit record component
    • image_matrix_limit

      public Integer image_matrix_limit()
      Returns the value of the image_matrix_limit record component.
      Returns:
      the value of the image_matrix_limit record component
    • video_size_limit

      public Integer video_size_limit()
      Returns the value of the video_size_limit record component.
      Returns:
      the value of the video_size_limit record component
    • video_frame_rate_limit

      public Integer video_frame_rate_limit()
      Returns the value of the video_frame_rate_limit record component.
      Returns:
      the value of the video_frame_rate_limit record component
    • video_matrix_limit

      public Integer video_matrix_limit()
      Returns the value of the video_matrix_limit record component.
      Returns:
      the value of the video_matrix_limit record component