Override toString

This commit is contained in:
Him188 2019-11-08 19:55:57 +08:00
parent 13e8443012
commit c6eef97c98

View File

@ -95,6 +95,10 @@ class Group internal constructor(bot: Bot, val groupId: GroupId) : Contact(bot,
bot.sendPacket(SendGroupMessagePacket(bot.qqAccount, internalId, bot.sessionKey, message))
}
override fun toString(): String {
return "Group(${this.id})"
}
companion object
}
@ -145,6 +149,10 @@ open class QQ internal constructor(bot: Bot, id: UInt) : Contact(bot, id) {
suspend fun QQ.addAsFriend() {
}
override fun toString(): String {
return "QQ(${this.id})"
}
}
@ -155,6 +163,10 @@ class Member internal constructor(bot: Bot, id: UInt, val group: Group) : QQ(bot
init {
TODO("Group member implementation")
}
override fun toString(): String {
return "Member(${this.id})"
}
}
/**