mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
feat: LineDev for Develop-0
This commit is contained in:
parent
1176fe984a
commit
0b4b25a11e
@ -16,7 +16,7 @@ export class NTQQSystemApi {
|
|||||||
static async translateEnWordToZn(words: string[]) {
|
static async translateEnWordToZn(words: string[]) {
|
||||||
return napCatCore.session.getRichMediaService().translateEnWordToZn(words);
|
return napCatCore.session.getRichMediaService().translateEnWordToZn(words);
|
||||||
}
|
}
|
||||||
//调用会超时 没灯用
|
//调用会超时 没灯用 (好像是通知listener的) onLineDev
|
||||||
static async getOnlineDev() {
|
static async getOnlineDev() {
|
||||||
return napCatCore.session.getMsgService().getOnLineDev();
|
return napCatCore.session.getMsgService().getOnLineDev();
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ export interface NodeIKernelMsgService {
|
|||||||
|
|
||||||
getLastMessageList(peer: Peer[]): Promise<unknown>;
|
getLastMessageList(peer: Peer[]): Promise<unknown>;
|
||||||
|
|
||||||
getAioFirstViewLatestMsgs(...args: unknown[]): unknown;
|
getAioFirstViewLatestMsgs(peer:Peer,unknown:number): unknown;
|
||||||
|
|
||||||
getMsgs(peer: Peer, msgId: string, count: unknown, queryOrder: boolean): Promise<unknown>;
|
getMsgs(peer: Peer, msgId: string, count: unknown, queryOrder: boolean): Promise<unknown>;
|
||||||
|
|
||||||
@ -430,7 +430,10 @@ export interface NodeIKernelMsgService {
|
|||||||
|
|
||||||
downloadRichMedia(...args: unknown[]): unknown;
|
downloadRichMedia(...args: unknown[]): unknown;
|
||||||
|
|
||||||
getFirstUnreadMsgSeq(...args: unknown[]): unknown;
|
getFirstUnreadMsgSeq(args: {
|
||||||
|
peerUid: string
|
||||||
|
guildId: string
|
||||||
|
}): unknown;
|
||||||
|
|
||||||
getFirstUnreadCommonMsg(...args: unknown[]): unknown;
|
getFirstUnreadCommonMsg(...args: unknown[]): unknown;
|
||||||
|
|
||||||
|
@ -1,6 +1,27 @@
|
|||||||
import { Peer } from "../entities";
|
import { Peer } from "../entities";
|
||||||
import { NodeIKernelRecentContactListener } from "../listeners/NodeIKernelRecentContactListener";
|
import { NodeIKernelRecentContactListener } from "../listeners/NodeIKernelRecentContactListener";
|
||||||
|
export interface FSABRecentContactParams {
|
||||||
|
anchorPointContact: {
|
||||||
|
contactId: string;
|
||||||
|
sortField: string;
|
||||||
|
pos: number;
|
||||||
|
},
|
||||||
|
relativeMoveCount: number;
|
||||||
|
listType: number;
|
||||||
|
count: number;
|
||||||
|
fetchOld: boolean;
|
||||||
|
}
|
||||||
|
// {
|
||||||
|
// "anchorPointContact": {
|
||||||
|
// "contactId": "",
|
||||||
|
// "sortField": "",
|
||||||
|
// "pos": 0
|
||||||
|
// },
|
||||||
|
// "relativeMoveCount": 0,
|
||||||
|
// "listType": 1,
|
||||||
|
// "count": 200,
|
||||||
|
// "fetchOld": true
|
||||||
|
// }
|
||||||
export interface NodeIKernelRecentContactService {
|
export interface NodeIKernelRecentContactService {
|
||||||
setGuildDisplayStatus(...args: unknown[]): unknown; // 2 arguments
|
setGuildDisplayStatus(...args: unknown[]): unknown; // 2 arguments
|
||||||
|
|
||||||
@ -12,7 +33,7 @@ export interface NodeIKernelRecentContactService {
|
|||||||
|
|
||||||
enterOrExitMsgList(...args: unknown[]): unknown; // 1 arguments
|
enterOrExitMsgList(...args: unknown[]): unknown; // 1 arguments
|
||||||
|
|
||||||
getRecentContactListSnapShot(...args: unknown[]): unknown; // 1 arguments
|
/*!---!*/getRecentContactListSnapShot(count: number): unknown; // 1 arguments
|
||||||
|
|
||||||
clearMsgUnreadCount(...args: unknown[]): unknown; // 1 arguments
|
clearMsgUnreadCount(...args: unknown[]): unknown; // 1 arguments
|
||||||
|
|
||||||
@ -20,7 +41,7 @@ export interface NodeIKernelRecentContactService {
|
|||||||
|
|
||||||
jumpToSpecifyRecentContact(...args: unknown[]): unknown; // 1 arguments
|
jumpToSpecifyRecentContact(...args: unknown[]): unknown; // 1 arguments
|
||||||
|
|
||||||
fetchAndSubscribeABatchOfRecentContact(...args: unknown[]): unknown; // 1 arguments
|
/*!---!*/fetchAndSubscribeABatchOfRecentContact(params: FSABRecentContactParams): unknown; // 1 arguments
|
||||||
|
|
||||||
addRecentContact(peer: Peer): unknown;
|
addRecentContact(peer: Peer): unknown;
|
||||||
|
|
||||||
@ -32,9 +53,9 @@ export interface NodeIKernelRecentContactService {
|
|||||||
|
|
||||||
updateGameMsgConfigs(...args: unknown[]): unknown; // 1 arguments
|
updateGameMsgConfigs(...args: unknown[]): unknown; // 1 arguments
|
||||||
|
|
||||||
removeKernelRecentContactListener(...args: unknown[]): unknown; // 1 arguments
|
removeKernelRecentContactListener(listenerid: number): unknown; // 1 arguments
|
||||||
|
|
||||||
addKernelRecentContactListener(listener: NodeIKernelRecentContactListener): number;
|
addKernelRecentContactListener(listener: NodeIKernelRecentContactListener): void;
|
||||||
|
|
||||||
clearRecentContactsByChatType(...args: unknown[]): unknown; // 1 arguments
|
clearRecentContactsByChatType(...args: unknown[]): unknown; // 1 arguments
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user