Friend List Complete

This commit is contained in:
jiahua.liu 2020-02-01 19:46:39 +08:00
parent be7c53767e
commit be8ab11f36
3 changed files with 2 additions and 18 deletions

View File

@ -106,23 +106,6 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
override suspend fun init() { override suspend fun init() {
//start updating friend/group list //start updating friend/group list
bot.logger.info("Start updating friend/group list") bot.logger.info("Start updating friend/group list")
/*
val data = FriendList.GetFriendGroupList(
bot.client,
0,
20,
0,
0
).sendAndExpect<FriendList.GetFriendGroupList.Response>()
println(data.contentToString())
*/
/*
* 开始加载Contact表
* */
var currentFriendCount = 0 var currentFriendCount = 0
var totalFriendCount: Short = 0 var totalFriendCount: Short = 0
while (true) { while (true) {

View File

@ -46,6 +46,7 @@ internal class MessageSvc {
PbGetMsg(client, packet.stMsgInfo?.uMsgTime ?: 0).sendAndExpect<MultiPacket<FriendMessage>>() PbGetMsg(client, packet.stMsgInfo?.uMsgTime ?: 0).sendAndExpect<MultiPacket<FriendMessage>>()
} }
} }
} }

View File

@ -25,4 +25,4 @@ data class BotAccount(
@Retention(AnnotationRetention.SOURCE) @Retention(AnnotationRetention.SOURCE)
@Target(CLASS, TYPEALIAS, FUNCTION, PROPERTY, FIELD, CONSTRUCTOR) @Target(CLASS, TYPEALIAS, FUNCTION, PROPERTY, FIELD, CONSTRUCTOR)
@Experimental(level = Experimental.Level.WARNING) @Experimental(level = Experimental.Level.WARNING)
internal annotation class RawAccountIdUse annotation class RawAccountIdUse