"ChatIdentifier" classes now are "data" classes

This commit is contained in:
InsanusMokrassar committed 2019-01-21 08:24:39 +08:00
1 parent bc0606e879
commit f8746e4555
2 files changed
+3 -2

No files matched your search

@@ -9,7 +9,7 @@ sealed class ChatIdentifier
* Also used as User Identifier
*/
@Serializable(ChatIdentifierSerializer::class)
class ChatId(
data class ChatId(
val chatId: Identifier
) : ChatIdentifier()
@@ -18,7 +18,7 @@ typealias UserId = ChatId
fun Identifier.toChatId(): ChatId = ChatId(this)
@Serializable(ChatIdentifierSerializer::class)
class Username(
data class Username(
val username: String
) : ChatIdentifier() {
init {