mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +08:00
Move to internal
This commit is contained in:
parent
64d80fc935
commit
3ddbdbf649
@ -4,6 +4,10 @@ import net.mamoe.mirai.Bot;
|
||||
import net.mamoe.mirai.contact.Group;
|
||||
import net.mamoe.mirai.contact.Member;
|
||||
import net.mamoe.mirai.contact.QQ;
|
||||
import net.mamoe.mirai.japt.internal.BlockingBotImpl;
|
||||
import net.mamoe.mirai.japt.internal.BlockingGroupImpl;
|
||||
import net.mamoe.mirai.japt.internal.BlockingMemberImpl;
|
||||
import net.mamoe.mirai.japt.internal.BlockingQQImpl;
|
||||
|
||||
/**
|
||||
* 构造阻塞式的联系人.
|
||||
|
@ -1,4 +1,4 @@
|
||||
package net.mamoe.mirai.japt
|
||||
package net.mamoe.mirai.japt.internal
|
||||
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import kotlinx.io.core.ByteReadPacket
|
||||
@ -7,6 +7,9 @@ import net.mamoe.mirai.BotAccount
|
||||
import net.mamoe.mirai.contact.GroupInternalId
|
||||
import net.mamoe.mirai.data.AddFriendResult
|
||||
import net.mamoe.mirai.data.ImageLink
|
||||
import net.mamoe.mirai.japt.BlockingBot
|
||||
import net.mamoe.mirai.japt.BlockingGroup
|
||||
import net.mamoe.mirai.japt.BlockingQQ
|
||||
import net.mamoe.mirai.message.data.Image
|
||||
import net.mamoe.mirai.network.BotNetworkHandler
|
||||
import net.mamoe.mirai.utils.MiraiInternalAPI
|
@ -1,13 +1,18 @@
|
||||
@file:Suppress("NOTHING_TO_INLINE", "unused")
|
||||
|
||||
package net.mamoe.mirai.japt
|
||||
package net.mamoe.mirai.japt.internal
|
||||
|
||||
import net.mamoe.mirai.Bot
|
||||
import net.mamoe.mirai.contact.Group
|
||||
import net.mamoe.mirai.contact.Member
|
||||
import net.mamoe.mirai.contact.QQ
|
||||
import net.mamoe.mirai.japt.*
|
||||
|
||||
inline fun Group.blocking(): BlockingGroup =
|
||||
BlockingContacts.createBlocking(this)
|
||||
|
||||
inline fun Group.blocking(): BlockingGroup = BlockingContacts.createBlocking(this)
|
||||
inline fun QQ.blocking(): BlockingQQ = BlockingContacts.createBlocking(this)
|
||||
inline fun Member.blocking(): BlockingMember = BlockingContacts.createBlocking(this)
|
||||
inline fun Member.blocking(): BlockingMember =
|
||||
BlockingContacts.createBlocking(this)
|
||||
|
||||
inline fun Bot.blocking(): BlockingBot = BlockingContacts.createBlocking(this)
|
@ -1,6 +1,6 @@
|
||||
@file:Suppress("EXPERIMENTAL_API_USAGE")
|
||||
|
||||
package net.mamoe.mirai.japt
|
||||
package net.mamoe.mirai.japt.internal
|
||||
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import net.mamoe.mirai.contact.Group
|
||||
@ -11,6 +11,10 @@ import net.mamoe.mirai.data.FriendNameRemark
|
||||
import net.mamoe.mirai.data.GroupInfo
|
||||
import net.mamoe.mirai.data.PreviousNameList
|
||||
import net.mamoe.mirai.data.Profile
|
||||
import net.mamoe.mirai.japt.BlockingBot
|
||||
import net.mamoe.mirai.japt.BlockingGroup
|
||||
import net.mamoe.mirai.japt.BlockingMember
|
||||
import net.mamoe.mirai.japt.BlockingQQ
|
||||
import net.mamoe.mirai.message.data.Message
|
||||
import net.mamoe.mirai.message.data.MessageChain
|
||||
import net.mamoe.mirai.message.data.toChain
|
Loading…
Reference in New Issue
Block a user