Commit c6eef97c authored by Him188's avatar Him188

Override toString

parent 13e84430
...@@ -95,6 +95,10 @@ class Group internal constructor(bot: Bot, val groupId: GroupId) : Contact(bot, ...@@ -95,6 +95,10 @@ class Group internal constructor(bot: Bot, val groupId: GroupId) : Contact(bot,
bot.sendPacket(SendGroupMessagePacket(bot.qqAccount, internalId, bot.sessionKey, message)) bot.sendPacket(SendGroupMessagePacket(bot.qqAccount, internalId, bot.sessionKey, message))
} }
override fun toString(): String {
return "Group(${this.id})"
}
companion object companion object
} }
...@@ -145,6 +149,10 @@ open class QQ internal constructor(bot: Bot, id: UInt) : Contact(bot, id) { ...@@ -145,6 +149,10 @@ open class QQ internal constructor(bot: Bot, id: UInt) : Contact(bot, id) {
suspend fun QQ.addAsFriend() { 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 ...@@ -155,6 +163,10 @@ class Member internal constructor(bot: Bot, id: UInt, val group: Group) : QQ(bot
init { init {
TODO("Group member implementation") TODO("Group member implementation")
} }
override fun toString(): String {
return "Member(${this.id})"
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment