Record Class JoinGuildPayload
java.lang.Object
java.lang.Record
dev.chojo.aether.discordoauth.pojo.JoinGuildPayload
-
Constructor Summary
ConstructorsConstructorDescriptionJoinGuildPayload(IOAuthToken token, String nick, List<String> roles, boolean mute, boolean deaf) JoinGuildPayload(String accessToken, String nick, List<String> roles, boolean mute, boolean deaf) Creates an instance of aJoinGuildPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.booleandeaf()Returns the value of thedeafrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmute()Returns the value of themuterecord component.nick()Returns the value of thenickrecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JoinGuildPayload
public JoinGuildPayload(IOAuthToken token, String nick, List<String> roles, boolean mute, boolean deaf) -
JoinGuildPayload
public JoinGuildPayload(String accessToken, String nick, List<String> roles, boolean mute, boolean deaf) Creates an instance of aJoinGuildPayloadrecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentnick- the value for thenickrecord componentroles- the value for therolesrecord componentmute- the value for themuterecord componentdeaf- the value for thedeafrecord 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. -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
nick
Returns the value of thenickrecord component.- Returns:
- the value of the
nickrecord component
-
roles
-
mute
public boolean mute()Returns the value of themuterecord component.- Returns:
- the value of the
muterecord component
-
deaf
public boolean deaf()Returns the value of thedeafrecord component.- Returns:
- the value of the
deafrecord component
-