Class ApplicationInfoImpl
- java.lang.Object
-
- org.javacord.core.entity.activity.ApplicationInfoImpl
-
- All Implemented Interfaces:
java.util.Formattable
,ApplicationInfo
,Nameable
public class ApplicationInfoImpl extends java.lang.Object implements ApplicationInfo
The implementation ofApplicationInfo
.
-
-
Constructor Summary
Constructors Constructor Description ApplicationInfoImpl(DiscordApi api, com.fasterxml.jackson.databind.JsonNode data)
Creates a new application info object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
botRequiresCodeGrant()
long
getClientId()
java.lang.String
getDescription()
java.lang.String
getName()
java.util.Optional<ApplicationOwner>
getOwner()
java.util.Optional<Team>
getTeam()
boolean
isPublicBot()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javacord.api.entity.ApplicationInfo
isOwnedByTeam
-
-
-
-
Constructor Detail
-
ApplicationInfoImpl
public ApplicationInfoImpl(DiscordApi api, com.fasterxml.jackson.databind.JsonNode data)
Creates a new application info object.- Parameters:
api
- The discord api.data
- The json data of the application.
-
-
Method Detail
-
getClientId
public long getClientId()
- Specified by:
getClientId
in interfaceApplicationInfo
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceApplicationInfo
-
isPublicBot
public boolean isPublicBot()
- Specified by:
isPublicBot
in interfaceApplicationInfo
-
botRequiresCodeGrant
public boolean botRequiresCodeGrant()
- Specified by:
botRequiresCodeGrant
in interfaceApplicationInfo
-
getOwner
public java.util.Optional<ApplicationOwner> getOwner()
- Specified by:
getOwner
in interfaceApplicationInfo
-
getTeam
public java.util.Optional<Team> getTeam()
- Specified by:
getTeam
in interfaceApplicationInfo
-
-