Package org.javacord.core.event.server
Class ServerChangeOwnerEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.ServerChangeOwnerEventImpl
-
- All Implemented Interfaces:
Event
,ServerChangeOwnerEvent
,ServerEvent
public class ServerChangeOwnerEventImpl extends ServerEventImpl implements ServerChangeOwnerEvent
The implementation ofServerChangeOwnerEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChangeOwnerEventImpl(Server server, long newOwnerId, long oldOwnerId)
Creates a new server change owner event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getNewOwnerId()
long
getOldOwnerId()
-
Methods inherited from class org.javacord.core.event.server.ServerEventImpl
getServer
-
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.server.ServerChangeOwnerEvent
getNewOwner, getOldOwner
-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
-
-
-
Constructor Detail
-
ServerChangeOwnerEventImpl
public ServerChangeOwnerEventImpl(Server server, long newOwnerId, long oldOwnerId)
Creates a new server change owner event.- Parameters:
server
- The server of the event.newOwnerId
- The id of the new owner of the server.oldOwnerId
- The id of the old owner of the server.
-
-
Method Detail
-
getOldOwnerId
public long getOldOwnerId()
- Specified by:
getOldOwnerId
in interfaceServerChangeOwnerEvent
-
getNewOwnerId
public long getNewOwnerId()
- Specified by:
getNewOwnerId
in interfaceServerChangeOwnerEvent
-
-