Class AuditLogEntryTargetImpl
- java.lang.Object
-
- org.javacord.core.entity.auditlog.AuditLogEntryTargetImpl
-
- All Implemented Interfaces:
AuditLogEntryTarget
,DiscordEntity
public class AuditLogEntryTargetImpl extends Object implements AuditLogEntryTarget
The implementation ofAuditLogEntryTarget
.
-
-
Constructor Summary
Constructors Constructor Description AuditLogEntryTargetImpl(long id, AuditLogEntry auditLogEntry)
Creates a new audit log entry target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
DiscordApi
getApi()
AuditLogEntry
getAuditLogEntry()
long
getId()
int
hashCode()
String
toString()
-
Methods inherited from interface org.javacord.api.entity.auditlog.AuditLogEntryTarget
asChannel, asServer, asUser, asWebhook
-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getCreationTimestamp, getCreationTimestamp, getIdAsString
-
-
-
-
Constructor Detail
-
AuditLogEntryTargetImpl
public AuditLogEntryTargetImpl(long id, AuditLogEntry auditLogEntry)
Creates a new audit log entry target.- Parameters:
id
- The id of the target.auditLogEntry
- audit log entry this target belongs to.
-
-
Method Detail
-
getApi
public DiscordApi getApi()
- Specified by:
getApi
in interfaceDiscordEntity
-
getId
public long getId()
- Specified by:
getId
in interfaceDiscordEntity
-
getAuditLogEntry
public AuditLogEntry getAuditLogEntry()
- Specified by:
getAuditLogEntry
in interfaceAuditLogEntryTarget
-
-