Commit e4e519eb authored by Him188's avatar Him188

Make ContactList.delegate internal

parent 8226b046
...@@ -59,7 +59,7 @@ inline fun <R> Contact.withSession(block: BotSession.() -> R): R { ...@@ -59,7 +59,7 @@ inline fun <R> Contact.withSession(block: BotSession.() -> R): R {
/** /**
* 只读联系人列表 * 只读联系人列表
*/ */
class ContactList<C : Contact> internal constructor(private val delegate: MutableContactList<C>) : Map<UInt, C> by delegate { class ContactList<C : Contact> internal constructor(internal val delegate: MutableContactList<C>) : Map<UInt, C> by delegate {
override fun toString(): String = delegate.toString() override fun toString(): String = delegate.toString()
} }
......
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