java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.ClientApplication
public record ClientApplication(String id, String name, String website, String redirect_uri, String client_id, String client_secret, String vapid_key)
extends Record
Represents a REST client application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclient_idrecord component.Returns the value of theclient_secretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of theredirect_urirecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevapid_keyrecord component.website()Returns the value of thewebsiterecord component.
-
Constructor Details
-
ClientApplication
public ClientApplication(String id, String name, String website, String redirect_uri, String client_id, String client_secret, String vapid_key) Creates an instance of aClientApplicationrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentwebsite- the value for thewebsiterecord componentredirect_uri- the value for theredirect_urirecord componentclient_id- the value for theclient_idrecord componentclient_secret- the value for theclient_secretrecord componentvapid_key- the value for thevapid_keyrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
website
Returns the value of thewebsiterecord component.- Returns:
- the value of the
websiterecord component
-
redirect_uri
Returns the value of theredirect_urirecord component.- Returns:
- the value of the
redirect_urirecord component
-
client_id
Returns the value of theclient_idrecord component.- Returns:
- the value of the
client_idrecord component
-
client_secret
Returns the value of theclient_secretrecord component.- Returns:
- the value of the
client_secretrecord component
-
vapid_key
Returns the value of thevapid_keyrecord component.- Returns:
- the value of the
vapid_keyrecord component
-