Package org.javacord.core.event.user
Class UserChangeStatusEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.user.OptionalUserEventImpl
-
- org.javacord.core.event.user.UserChangeStatusEventImpl
-
- All Implemented Interfaces:
Event
,OptionalUserEvent
,UserChangeStatusEvent
public class UserChangeStatusEventImpl extends OptionalUserEventImpl implements UserChangeStatusEvent
The implementation ofUserChangeStatusEvent
.
-
-
Constructor Summary
Constructors Constructor Description UserChangeStatusEventImpl(DiscordApi api, long userId, UserStatus newStatus, UserStatus oldStatus, io.vavr.collection.Map<DiscordClient,UserStatus> newClientStatus, io.vavr.collection.Map<DiscordClient,UserStatus> oldClientStatus)
Creates a new user change status event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserStatus
getNewStatus()
UserStatus
getNewStatusOnClient(DiscordClient client)
UserStatus
getOldStatus()
UserStatus
getOldStatusOnClient(DiscordClient client)
-
Methods inherited from class org.javacord.core.event.user.OptionalUserEventImpl
getUserId
-
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.event.user.OptionalUserEvent
getUser, getUserId, getUserIdAsString, requestUser
-
Methods inherited from interface org.javacord.api.event.user.UserChangeStatusEvent
getNewDesktopStatus, getNewMobileStatus, getNewWebStatus, getOldDesktopStatus, getOldMobileStatus, getOldWebStatus, hasStatusChangeOnClient
-
-
-
-
Constructor Detail
-
UserChangeStatusEventImpl
public UserChangeStatusEventImpl(DiscordApi api, long userId, UserStatus newStatus, UserStatus oldStatus, io.vavr.collection.Map<DiscordClient,UserStatus> newClientStatus, io.vavr.collection.Map<DiscordClient,UserStatus> oldClientStatus)
Creates a new user change status event.- Parameters:
api
- A discord api instance.userId
- The id of the user of the event.newStatus
- The new status of the user.oldStatus
- The old status of the user.newClientStatus
- The new client specific status of the user.oldClientStatus
- The old client specific status of the user.
-
-
Method Detail
-
getOldStatus
public UserStatus getOldStatus()
- Specified by:
getOldStatus
in interfaceUserChangeStatusEvent
-
getNewStatus
public UserStatus getNewStatus()
- Specified by:
getNewStatus
in interfaceUserChangeStatusEvent
-
getOldStatusOnClient
public UserStatus getOldStatusOnClient(DiscordClient client)
- Specified by:
getOldStatusOnClient
in interfaceUserChangeStatusEvent
-
getNewStatusOnClient
public UserStatus getNewStatusOnClient(DiscordClient client)
- Specified by:
getNewStatusOnClient
in interfaceUserChangeStatusEvent
-
-