Class ServerChannelChangePositionEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.channel.server.ServerChannelEventImpl
-
- org.javacord.core.event.channel.server.ServerChannelChangePositionEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,ServerChannelChangePositionEvent
,ServerChannelEvent
,Event
,ServerEvent
public class ServerChannelChangePositionEventImpl extends ServerChannelEventImpl implements ServerChannelChangePositionEvent
The implementation ofServerChannelChangePositionEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChannelChangePositionEventImpl(ServerChannel channel, int newPosition, int oldPosition, int newRawPosition, int oldRawPosition, ChannelCategory newCategory, ChannelCategory oldCategory)
Creates a new server channel change position event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ChannelCategory>
getNewCategory()
int
getNewPosition()
int
getNewRawPosition()
Optional<ChannelCategory>
getOldCategory()
int
getOldPosition()
int
getOldRawPosition()
-
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.channel.server.ServerChannelEvent
getChannel
-
Methods inherited from class org.javacord.core.event.channel.server.ServerChannelEventImpl
getChannel
-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
Methods inherited from class org.javacord.core.event.server.ServerEventImpl
getServer
-
-
-
-
Constructor Detail
-
ServerChannelChangePositionEventImpl
public ServerChannelChangePositionEventImpl(ServerChannel channel, int newPosition, int oldPosition, int newRawPosition, int oldRawPosition, ChannelCategory newCategory, ChannelCategory oldCategory)
Creates a new server channel change position event.- Parameters:
channel
- The channel of the event.newPosition
- The new (logical!) position of the channel.oldPosition
- The old (logical!) position of the channel.newRawPosition
- The new raw position of the channel.oldRawPosition
- The old raw position of the channel.newCategory
- The new category of the channel.oldCategory
- The old category of the channel.
-
-
Method Detail
-
getNewPosition
public int getNewPosition()
- Specified by:
getNewPosition
in interfaceServerChannelChangePositionEvent
-
getOldPosition
public int getOldPosition()
- Specified by:
getOldPosition
in interfaceServerChannelChangePositionEvent
-
getNewRawPosition
public int getNewRawPosition()
- Specified by:
getNewRawPosition
in interfaceServerChannelChangePositionEvent
-
getOldRawPosition
public int getOldRawPosition()
- Specified by:
getOldRawPosition
in interfaceServerChannelChangePositionEvent
-
getNewCategory
public Optional<ChannelCategory> getNewCategory()
- Specified by:
getNewCategory
in interfaceServerChannelChangePositionEvent
-
getOldCategory
public Optional<ChannelCategory> getOldCategory()
- Specified by:
getOldCategory
in interfaceServerChannelChangePositionEvent
-
-