Package org.javacord.core.entity.channel
Class ServerVoiceChannelUpdaterDelegateImpl
- java.lang.Object
-
- org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
-
- org.javacord.core.entity.channel.ServerVoiceChannelUpdaterDelegateImpl
-
- All Implemented Interfaces:
ServerChannelUpdaterDelegate
,ServerVoiceChannelUpdaterDelegate
public class ServerVoiceChannelUpdaterDelegateImpl extends ServerChannelUpdaterDelegateImpl implements ServerVoiceChannelUpdaterDelegate
The implementation ofServerVoiceChannelUpdaterDelegate
.
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
bitrate
The bitrate to update.protected ChannelCategory
category
The category to update.protected boolean
modifyCategory
Whether the category should be modified or not.protected Integer
userLimit
The user limit to update.-
Fields inherited from class org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
channel, name, overwrittenRolePermissions, overwrittenUserPermissions, position, reason
-
-
Constructor Summary
Constructors Constructor Description ServerVoiceChannelUpdaterDelegateImpl(ServerVoiceChannel channel)
Creates a new server voice channel updater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
prepareUpdateBody(com.fasterxml.jackson.databind.node.ObjectNode body)
void
removeCategory()
void
removeUserLimit()
void
setBitrate(int bitrate)
void
setCategory(ChannelCategory category)
void
setUserLimit(int userLimit)
-
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.entity.channel.internal.ServerChannelUpdaterDelegate
addPermissionOverwrite, removePermissionOverwrite, setAuditLogReason, setName, setRawPosition, update
-
Methods inherited from class org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
addPermissionOverwrite, removePermissionOverwrite, setAuditLogReason, setName, setRawPosition, update
-
-
-
-
Field Detail
-
bitrate
protected Integer bitrate
The bitrate to update.
-
userLimit
protected Integer userLimit
The user limit to update.
-
category
protected ChannelCategory category
The category to update.
-
modifyCategory
protected boolean modifyCategory
Whether the category should be modified or not.
-
-
Constructor Detail
-
ServerVoiceChannelUpdaterDelegateImpl
public ServerVoiceChannelUpdaterDelegateImpl(ServerVoiceChannel channel)
Creates a new server voice channel updater.- Parameters:
channel
- The channel to update.
-
-
Method Detail
-
setBitrate
public void setBitrate(int bitrate)
- Specified by:
setBitrate
in interfaceServerVoiceChannelUpdaterDelegate
-
setUserLimit
public void setUserLimit(int userLimit)
- Specified by:
setUserLimit
in interfaceServerVoiceChannelUpdaterDelegate
-
removeUserLimit
public void removeUserLimit()
- Specified by:
removeUserLimit
in interfaceServerVoiceChannelUpdaterDelegate
-
setCategory
public void setCategory(ChannelCategory category)
- Specified by:
setCategory
in interfaceServerVoiceChannelUpdaterDelegate
-
removeCategory
public void removeCategory()
- Specified by:
removeCategory
in interfaceServerVoiceChannelUpdaterDelegate
-
prepareUpdateBody
protected boolean prepareUpdateBody(com.fasterxml.jackson.databind.node.ObjectNode body)
- Overrides:
prepareUpdateBody
in classServerChannelUpdaterDelegateImpl
-
-