Class InviteImpl.InviteTargetImpl
java.lang.Object
net.dv8tion.jda.internal.entities.InviteImpl.InviteTargetImpl
- All Implemented Interfaces:
Invite.InviteTarget
- Enclosing class:
InviteImpl
-
Constructor Summary
ConstructorsConstructorDescriptionInviteTargetImpl
(Invite.TargetType type, Invite.EmbeddedApplication targetApplication, User targetUser) -
Method Summary
Modifier and TypeMethodDescriptionThe targetInvite.EmbeddedApplication
of this invite ornull
if theTargeType
is notInvite.TargetType.EMBEDDED_APPLICATION
getId()
The Snowflake id of the target entity of this invite.long
The Snowflake id of the target entity of this invite.getType()
The type of this invite target.getUser()
toString()
-
Constructor Details
-
InviteTargetImpl
public InviteTargetImpl(Invite.TargetType type, Invite.EmbeddedApplication targetApplication, User targetUser)
-
-
Method Details
-
getType
Description copied from interface:Invite.InviteTarget
The type of this invite target.- Specified by:
getType
in interfaceInvite.InviteTarget
- Returns:
- The type of this invite target
-
getId
Description copied from interface:Invite.InviteTarget
The Snowflake id of the target entity of this invite.- Specified by:
getId
in interfaceInvite.InviteTarget
- Returns:
- The id of the target entity
-
getIdLong
public long getIdLong()Description copied from interface:Invite.InviteTarget
The Snowflake id of the target entity of this invite.- Specified by:
getIdLong
in interfaceInvite.InviteTarget
- Returns:
- The id of the target entity
-
getUser
Description copied from interface:Invite.InviteTarget
- Specified by:
getUser
in interfaceInvite.InviteTarget
- Returns:
- The target user of this invite
- See Also:
-
getApplication
Description copied from interface:Invite.InviteTarget
The targetInvite.EmbeddedApplication
of this invite ornull
if theTargeType
is notInvite.TargetType.EMBEDDED_APPLICATION
- Specified by:
getApplication
in interfaceInvite.InviteTarget
- Returns:
- The target application of this invite
- See Also:
-
toString
-