mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
Add mac and ipad protocol from miraiGo (#1523)
* add mac and ipad protocol * Update BotConfiguration.kt * Update MiraiProtocolInternal.kt * api * Update mirai-core-api/src/commonMain/kotlin/utils/BotConfiguration.kt Co-authored-by: Him188 <Him188@mamoe.net>
This commit is contained in:
parent
ceeb4d7b5f
commit
d3425a7566
@ -5593,6 +5593,8 @@ public final class net/mamoe/mirai/utils/BotConfiguration$MiraiProtocol : java/l
|
||||
public static final field ANDROID_PAD Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field ANDROID_PHONE Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field ANDROID_WATCH Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field IPAD Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field MACOS Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static fun valueOf (Ljava/lang/String;)Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static fun values ()[Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
}
|
||||
|
@ -5593,6 +5593,8 @@ public final class net/mamoe/mirai/utils/BotConfiguration$MiraiProtocol : java/l
|
||||
public static final field ANDROID_PAD Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field ANDROID_PHONE Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field ANDROID_WATCH Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field IPAD Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static final field MACOS Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static fun valueOf (Ljava/lang/String;)Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
public static fun values ()[Lnet/mamoe/mirai/utils/BotConfiguration$MiraiProtocol;
|
||||
}
|
||||
|
@ -251,6 +251,20 @@ public open class BotConfiguration { // open for Java
|
||||
*/
|
||||
ANDROID_WATCH,
|
||||
|
||||
/**
|
||||
* iPad - 来自MiraiGo
|
||||
*
|
||||
* @since 2.8
|
||||
*/
|
||||
IPAD,
|
||||
|
||||
/**
|
||||
* MacOS - 来自MiraiGo
|
||||
*
|
||||
* @since 2.8
|
||||
*/
|
||||
MACOS,
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -64,6 +64,28 @@ internal class MiraiProtocolInternal(
|
||||
"A6 B7 45 BF 24 A2 C2 77 52 77 16 F6 F3 6E B6 8D",
|
||||
1571193922L
|
||||
)
|
||||
protocols[MiraiProtocol.IPAD] = MiraiProtocolInternal(
|
||||
"com.tencent.minihd.qq",
|
||||
537065739,
|
||||
"5.8.9",
|
||||
"6.0.0.2433",
|
||||
150470524,
|
||||
66560,
|
||||
1970400,
|
||||
"AA 39 78 F4 1F D9 6F F9 91 4A 66 9E 18 64 74 C7",
|
||||
1595836208L,
|
||||
)
|
||||
protocols[MiraiProtocol.MACOS] = MiraiProtocolInternal(
|
||||
"com.tencent.minihd.qq",
|
||||
537064315,
|
||||
"5.8.9",
|
||||
"6.0.0.2433",
|
||||
150470524,
|
||||
66560,
|
||||
1970400,
|
||||
"AA 39 78 F4 1F D9 6F F9 91 4A 66 9E 18 64 74 C7",
|
||||
1595836208L,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user