mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
data class.
This commit is contained in:
parent
87adaee549
commit
c7dc08ef5d
1 changed files with 33 additions and 33 deletions
|
@ -29,44 +29,44 @@ sealed interface ParsedCommand {
|
||||||
object ErrorEmptySlashCommand : ParsedCommand
|
object ErrorEmptySlashCommand : ParsedCommand
|
||||||
|
|
||||||
// Unknown/Unsupported slash command
|
// Unknown/Unsupported slash command
|
||||||
class ErrorUnknownSlashCommand(val slashCommand: String) : ParsedCommand
|
data class ErrorUnknownSlashCommand(val slashCommand: String) : ParsedCommand
|
||||||
|
|
||||||
// A slash command is detected, but there is an error
|
// A slash command is detected, but there is an error
|
||||||
class ErrorSyntax(val command: Command) : ParsedCommand
|
data class ErrorSyntax(val command: Command) : ParsedCommand
|
||||||
|
|
||||||
// Valid commands:
|
// Valid commands:
|
||||||
|
|
||||||
class SendPlainText(val message: CharSequence) : ParsedCommand
|
data class SendPlainText(val message: CharSequence) : ParsedCommand
|
||||||
class SendEmote(val message: CharSequence) : ParsedCommand
|
data class SendEmote(val message: CharSequence) : ParsedCommand
|
||||||
class SendRainbow(val message: CharSequence) : ParsedCommand
|
data class SendRainbow(val message: CharSequence) : ParsedCommand
|
||||||
class SendRainbowEmote(val message: CharSequence) : ParsedCommand
|
data class SendRainbowEmote(val message: CharSequence) : ParsedCommand
|
||||||
class BanUser(val userId: String, val reason: String?) : ParsedCommand
|
data class BanUser(val userId: String, val reason: String?) : ParsedCommand
|
||||||
class UnbanUser(val userId: String, val reason: String?) : ParsedCommand
|
data class UnbanUser(val userId: String, val reason: String?) : ParsedCommand
|
||||||
class IgnoreUser(val userId: String) : ParsedCommand
|
data class IgnoreUser(val userId: String) : ParsedCommand
|
||||||
class UnignoreUser(val userId: String) : ParsedCommand
|
data class UnignoreUser(val userId: String) : ParsedCommand
|
||||||
class SetUserPowerLevel(val userId: String, val powerLevel: Int?) : ParsedCommand
|
data class SetUserPowerLevel(val userId: String, val powerLevel: Int?) : ParsedCommand
|
||||||
class ChangeRoomName(val name: String) : ParsedCommand
|
data class ChangeRoomName(val name: String) : ParsedCommand
|
||||||
class Invite(val userId: String, val reason: String?) : ParsedCommand
|
data class Invite(val userId: String, val reason: String?) : ParsedCommand
|
||||||
class Invite3Pid(val threePid: ThreePid) : ParsedCommand
|
data class Invite3Pid(val threePid: ThreePid) : ParsedCommand
|
||||||
class JoinRoom(val roomAlias: String, val reason: String?) : ParsedCommand
|
data class JoinRoom(val roomAlias: String, val reason: String?) : ParsedCommand
|
||||||
class PartRoom(val roomAlias: String?) : ParsedCommand
|
data class PartRoom(val roomAlias: String?) : ParsedCommand
|
||||||
class ChangeTopic(val topic: String) : ParsedCommand
|
data class ChangeTopic(val topic: String) : ParsedCommand
|
||||||
class RemoveUser(val userId: String, val reason: String?) : ParsedCommand
|
data class RemoveUser(val userId: String, val reason: String?) : ParsedCommand
|
||||||
class ChangeDisplayName(val displayName: String) : ParsedCommand
|
data class ChangeDisplayName(val displayName: String) : ParsedCommand
|
||||||
class ChangeDisplayNameForRoom(val displayName: String) : ParsedCommand
|
data class ChangeDisplayNameForRoom(val displayName: String) : ParsedCommand
|
||||||
class ChangeRoomAvatar(val url: String) : ParsedCommand
|
data class ChangeRoomAvatar(val url: String) : ParsedCommand
|
||||||
class ChangeAvatarForRoom(val url: String) : ParsedCommand
|
data class ChangeAvatarForRoom(val url: String) : ParsedCommand
|
||||||
class SetMarkdown(val enable: Boolean) : ParsedCommand
|
data class SetMarkdown(val enable: Boolean) : ParsedCommand
|
||||||
object ClearScalarToken : ParsedCommand
|
object ClearScalarToken : ParsedCommand
|
||||||
class SendSpoiler(val message: String) : ParsedCommand
|
data class SendSpoiler(val message: String) : ParsedCommand
|
||||||
class SendShrug(val message: CharSequence) : ParsedCommand
|
data class SendShrug(val message: CharSequence) : ParsedCommand
|
||||||
class SendLenny(val message: CharSequence) : ParsedCommand
|
data class SendLenny(val message: CharSequence) : ParsedCommand
|
||||||
object DiscardSession : ParsedCommand
|
object DiscardSession : ParsedCommand
|
||||||
class ShowUser(val userId: String) : ParsedCommand
|
data class ShowUser(val userId: String) : ParsedCommand
|
||||||
class SendChatEffect(val chatEffect: ChatEffect, val message: String) : ParsedCommand
|
data class SendChatEffect(val chatEffect: ChatEffect, val message: String) : ParsedCommand
|
||||||
class CreateSpace(val name: String, val invitees: List<String>) : ParsedCommand
|
data class CreateSpace(val name: String, val invitees: List<String>) : ParsedCommand
|
||||||
class AddToSpace(val spaceId: String) : ParsedCommand
|
data class AddToSpace(val spaceId: String) : ParsedCommand
|
||||||
class JoinSpace(val spaceIdOrAlias: String) : ParsedCommand
|
data class JoinSpace(val spaceIdOrAlias: String) : ParsedCommand
|
||||||
class LeaveRoom(val roomId: String) : ParsedCommand
|
data class LeaveRoom(val roomId: String) : ParsedCommand
|
||||||
class UpgradeRoom(val newVersion: String) : ParsedCommand
|
data class UpgradeRoom(val newVersion: String) : ParsedCommand
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue