Class AuditLogEntryImpl
java.lang.Object
com.mewna.catnip.entity.impl.guild.audit.AuditLogEntryImpl
- All Implemented Interfaces:
Entity
,AuditLogEntry
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 10/07/2018
- Author:
- SamOphis
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionAuditLogEntryImpl
(Catnip catnip, long idAsLong, long targetIdAsLong, User user, String reason, OptionalEntryInfo options, ActionType type, List<AuditLogChange> changes, Webhook webhook) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
changes()
changes
(List<AuditLogChange> changes) boolean
int
hashCode()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) options()
options
(OptionalEntryInfo options) reason()
long
targetIdAsLong
(long targetIdAsLong) toString()
type()
type
(ActionType type) user()
webhook()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.guild.audit.AuditLogEntry
targetId
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
AuditLogEntryImpl
public AuditLogEntryImpl() -
AuditLogEntryImpl
public AuditLogEntryImpl(Catnip catnip, long idAsLong, long targetIdAsLong, User user, String reason, OptionalEntryInfo options, ActionType type, List<AuditLogChange> changes, Webhook webhook)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
targetIdAsLong
public long targetIdAsLong()- Specified by:
targetIdAsLong
in interfaceAuditLogEntry
-
user
- Specified by:
user
in interfaceAuditLogEntry
-
reason
- Specified by:
reason
in interfaceAuditLogEntry
-
options
- Specified by:
options
in interfaceAuditLogEntry
-
type
- Specified by:
type
in interfaceAuditLogEntry
-
changes
- Specified by:
changes
in interfaceAuditLogEntry
-
webhook
-
idAsLong
- Returns:
this
.
-
targetIdAsLong
- Returns:
this
.
-
user
- Returns:
this
.
-
reason
- Returns:
this
.
-
options
- Returns:
this
.
-
type
- Returns:
this
.
-
changes
- Returns:
this
.
-
webhook
- Returns:
this
.
-