mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +00:00
optimization and conventions
converted some objects with purpose to hold the data to data objects
This commit is contained in:
parent
cb33176e8b
commit
b7d3d849eb
@ -1,16 +1,16 @@
|
|||||||
package dev.inmo.tgbotapi.webapps
|
package dev.inmo.tgbotapi.webapps
|
||||||
|
|
||||||
sealed class EventType(val typeName: String) {
|
sealed class EventType(val typeName: String) {
|
||||||
object ThemeChanged : EventType("themeChanged")
|
data object ThemeChanged : EventType("themeChanged")
|
||||||
object ViewportChanged : EventType("viewportChanged")
|
data object ViewportChanged : EventType("viewportChanged")
|
||||||
object MainButtonClicked : EventType("mainButtonClicked")
|
data object MainButtonClicked : EventType("mainButtonClicked")
|
||||||
object BackButtonClicked : EventType("backButtonClicked")
|
data object BackButtonClicked : EventType("backButtonClicked")
|
||||||
object SettingsButtonClicked : EventType("settingsButtonClicked")
|
data object SettingsButtonClicked : EventType("settingsButtonClicked")
|
||||||
object InvoiceClosed : EventType("invoiceClosed")
|
data object InvoiceClosed : EventType("invoiceClosed")
|
||||||
object PopupClosed : EventType("popupClosed")
|
data object PopupClosed : EventType("popupClosed")
|
||||||
object QRTextReceived : EventType("qrTextReceived")
|
data object QRTextReceived : EventType("qrTextReceived")
|
||||||
object ClipboardTextReceived : EventType("clipboardTextReceived")
|
data object ClipboardTextReceived : EventType("clipboardTextReceived")
|
||||||
object WriteAccessRequested : EventType("writeAccessRequested")
|
data object WriteAccessRequested : EventType("writeAccessRequested")
|
||||||
object ContactRequested : EventType("contactRequested")
|
data object ContactRequested : EventType("contactRequested")
|
||||||
object ScanQRPopupClosed : EventType("scanQrPopupClosed")
|
data object ScanQRPopupClosed : EventType("scanQrPopupClosed")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user