mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
feat: add more msgElement
This commit is contained in:
parent
e4a533e7b7
commit
17e70a4360
@ -220,12 +220,6 @@ export class PacketMsgFaceElement extends IPacketMsgElement<SendFaceElement> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PacketMsgPttElement extends IPacketMsgElement<SendPttElement> {
|
|
||||||
constructor(element: SendPttElement) {
|
|
||||||
super(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class PacketMsgVideoElement extends IPacketMsgElement<SendVideoElement> {
|
export class PacketMsgVideoElement extends IPacketMsgElement<SendVideoElement> {
|
||||||
constructor(element: SendVideoElement) {
|
constructor(element: SendVideoElement) {
|
||||||
super(element);
|
super(element);
|
||||||
@ -238,6 +232,12 @@ export class PacketMsgFileElement extends IPacketMsgElement<SendFileElement> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class PacketMsgPttElement extends IPacketMsgElement<SendPttElement> {
|
||||||
|
constructor(element: SendPttElement) {
|
||||||
|
super(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export class PacketMsgLightAppElement extends IPacketMsgElement<SendArkElement> {
|
export class PacketMsgLightAppElement extends IPacketMsgElement<SendArkElement> {
|
||||||
payload: string;
|
payload: string;
|
||||||
|
|
||||||
@ -258,28 +258,28 @@ export class PacketMsgLightAppElement extends IPacketMsgElement<SendArkElement>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class PacketMsgMarkDownElement extends IPacketMsgElement<SendMarkdownElement> {
|
||||||
|
content: string;
|
||||||
|
|
||||||
|
constructor(element: SendMarkdownElement) {
|
||||||
|
super(element);
|
||||||
|
this.content = element.markdownElement.content;
|
||||||
|
}
|
||||||
|
|
||||||
|
buildElement(): NapProtoEncodeStructType<typeof Elem>[] {
|
||||||
|
return [{
|
||||||
|
commonElem: {
|
||||||
|
serviceType: 45,
|
||||||
|
pbElem: new NapProtoMsg(MarkdownData).encode({
|
||||||
|
content: this.content
|
||||||
|
}),
|
||||||
|
businessType: 1
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// export class PacketMsgMarkDownElement extends IPacketMsgElement<SendMarkdownElement> {
|
|
||||||
// content: string;
|
|
||||||
//
|
|
||||||
// constructor(element: SendMarkdownElement) {
|
|
||||||
// super(element);
|
|
||||||
// this.content = element.markdownElement.content;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// buildElement(): NapProtoEncodeStructType<typeof Elem>[] {
|
|
||||||
// return [{
|
|
||||||
// commonElem: {
|
|
||||||
// serviceType: 45,
|
|
||||||
// pbElem: new NapProtoMsg(MarkdownData).encode({
|
|
||||||
// content: this.content
|
|
||||||
// }),
|
|
||||||
// businessType: 1
|
|
||||||
// }
|
|
||||||
// }]
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// export class PacketMsgLongMsgElement extends IPacketMsgElement<SendStructLongMsgElement> {
|
// export class PacketMsgLongMsgElement extends IPacketMsgElement<SendStructLongMsgElement> {
|
||||||
// resid: string;
|
// resid: string;
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user