Record Class BaseMastodonApi.QueryOptions

java.lang.Object
java.lang.Record
org.mastodon4j.core.api.BaseMastodonApi.QueryOptions
Enclosing interface:
BaseMastodonApi

public static record BaseMastodonApi.QueryOptions(String q, String type, Boolean resolve, Boolean following, String account_id, Boolean exclude_unreviewed, String max_id, String min_id, Integer limit, Integer offset) extends Record
  • Constructor Details

    • QueryOptions

      public QueryOptions(String q, String type, Boolean resolve, Boolean following, String account_id, Boolean exclude_unreviewed, String max_id, String min_id, Integer limit, Integer offset)
      Creates an instance of a QueryOptions record class.
      Parameters:
      q - the value for the q record component
      type - the value for the type record component
      resolve - the value for the resolve record component
      following - the value for the following record component
      account_id - the value for the account_id record component
      exclude_unreviewed - the value for the exclude_unreviewed record component
      max_id - the value for the max_id record component
      min_id - the value for the min_id record component
      limit - the value for the limit record component
      offset - the value for the offset record component
  • Method Details

    • of

      public static BaseMastodonApi.QueryOptions of(String query)
    • type

    • resolve

      public BaseMastodonApi.QueryOptions resolve(boolean resolve)
    • following

      public BaseMastodonApi.QueryOptions following(boolean following)
    • accountId

      public BaseMastodonApi.QueryOptions accountId(String account_id)
    • excludeUnreviewed

      public BaseMastodonApi.QueryOptions excludeUnreviewed(boolean exclude_unreviewed)
    • maxId

      public BaseMastodonApi.QueryOptions maxId(String max_id)
    • minId

      public BaseMastodonApi.QueryOptions minId(String min_id)
    • limit

      public BaseMastodonApi.QueryOptions limit(int limit)
    • offset

      public BaseMastodonApi.QueryOptions offset(int offset)
    • 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.
    • q

      public String q()
      Returns the value of the q record component.
      Returns:
      the value of the q record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • resolve

      public Boolean resolve()
      Returns the value of the resolve record component.
      Returns:
      the value of the resolve record component
    • following

      public Boolean following()
      Returns the value of the following record component.
      Returns:
      the value of the following record component
    • account_id

      public String account_id()
      Returns the value of the account_id record component.
      Returns:
      the value of the account_id record component
    • exclude_unreviewed

      public Boolean exclude_unreviewed()
      Returns the value of the exclude_unreviewed record component.
      Returns:
      the value of the exclude_unreviewed record component
    • max_id

      public String max_id()
      Returns the value of the max_id record component.
      Returns:
      the value of the max_id record component
    • min_id

      public String min_id()
      Returns the value of the min_id record component.
      Returns:
      the value of the min_id record component
    • limit

      public Integer limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component
    • offset

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