Record Class Connection
java.lang.Object
java.lang.Record
dev.chojo.aether.discordoauth.pojo.Connection
public record Connection(String id, String name, ConnectionType type, boolean revoked, List<ConnectionType> integrations, boolean verified, boolean friendSync, boolean showActivity, boolean twoWayLink, int visibility)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConnection(String id, String name, ConnectionType type, boolean revoked, List<ConnectionType> integrations, boolean verified, boolean friendSync, boolean showActivity, boolean twoWayLink, int visibility) Creates an instance of aConnectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefriendSyncrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theintegrationsrecord component.name()Returns the value of thenamerecord component.booleanrevoked()Returns the value of therevokedrecord component.booleanReturns the value of theshowActivityrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetwoWayLinkrecord component.type()Returns the value of thetyperecord component.booleanverified()Returns the value of theverifiedrecord component.intReturns the value of thevisibilityrecord component.
-
Constructor Details
-
Connection
public Connection(String id, String name, ConnectionType type, boolean revoked, List<ConnectionType> integrations, boolean verified, boolean friendSync, boolean showActivity, boolean twoWayLink, int visibility) Creates an instance of aConnectionrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentrevoked- the value for therevokedrecord componentintegrations- the value for theintegrationsrecord componentverified- the value for theverifiedrecord componentfriendSync- the value for thefriendSyncrecord componentshowActivity- the value for theshowActivityrecord componenttwoWayLink- the value for thetwoWayLinkrecord componentvisibility- the value for thevisibilityrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
revoked
public boolean revoked()Returns the value of therevokedrecord component.- Returns:
- the value of the
revokedrecord component
-
integrations
Returns the value of theintegrationsrecord component.- Returns:
- the value of the
integrationsrecord component
-
verified
public boolean verified()Returns the value of theverifiedrecord component.- Returns:
- the value of the
verifiedrecord component
-
friendSync
public boolean friendSync()Returns the value of thefriendSyncrecord component.- Returns:
- the value of the
friendSyncrecord component
-
showActivity
public boolean showActivity()Returns the value of theshowActivityrecord component.- Returns:
- the value of the
showActivityrecord component
-
twoWayLink
public boolean twoWayLink()Returns the value of thetwoWayLinkrecord component.- Returns:
- the value of the
twoWayLinkrecord component
-
visibility
public int visibility()Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-