public class ChannelPartEvent extends ActorChannelMessageEventBase<User> implements ChannelUserListChangeEvent
ChannelUserListChangeEvent.Change
Constructor and Description |
---|
ChannelPartEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull Channel channel,
@NonNull User user,
@NonNull String message)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Optional<Channel> |
getAffectedChannel()
Gets the channel affected or empty if affecting all channels the user
is present in.
|
@NonNull ChannelUserListChangeEvent.Change |
getChange()
Gets the type of change occurring.
|
@NonNull User |
getUser()
Gets the current user affected.
|
getMessage, toStringer
getChannel
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSource, getTag, getTag, getTags
getClient
public ChannelPartEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull Channel channel, @NonNull User user, @NonNull String message)
client
- client for which this is occurringsourceMessage
- source messagechannel
- channel being leftuser
- user leavingmessage
- message the user leftpublic @NonNull Optional<Channel> getAffectedChannel()
ChannelUserListChangeEvent
getAffectedChannel
in interface ChannelUserListChangeEvent
public @NonNull ChannelUserListChangeEvent.Change getChange()
ChannelUserListChangeEvent
getChange
in interface ChannelUserListChangeEvent
public @NonNull User getUser()
ChannelUserListChangeEvent
getUser
in interface ChannelUserListChangeEvent
Copyright © 2013–2021 Kitteh. All rights reserved.