Package org.javacord.core.event.user
Class UserChangeActivityEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.user.UserEventImpl
-
- org.javacord.core.event.user.UserChangeActivityEventImpl
-
- All Implemented Interfaces:
Event
,UserChangeActivityEvent
,UserEvent
public class UserChangeActivityEventImpl extends UserEventImpl implements UserChangeActivityEvent
The implementation ofUserChangeActivityEvent
.
-
-
Constructor Summary
Constructors Constructor Description UserChangeActivityEventImpl(User user, Activity newActivity, Activity oldActivity)
Creates a new user change activity event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Activity>
getNewActivity()
Optional<Activity>
getOldActivity()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.javacord.core.event.user.UserEventImpl
getUser
-
-
-
-
Method Detail
-
getOldActivity
public Optional<Activity> getOldActivity()
- Specified by:
getOldActivity
in interfaceUserChangeActivityEvent
-
getNewActivity
public Optional<Activity> getNewActivity()
- Specified by:
getNewActivity
in interfaceUserChangeActivityEvent
-
-