mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-05 10:29:04 +08:00
30 lines
738 B
TypeScript
30 lines
738 B
TypeScript
import { OB11BaseNoticeEvent } from './OB11BaseNoticeEvent';
|
|
import { selfInfo } from '@/core/data';
|
|
import { OB11BaseEvent } from '../OB11BaseEvent';
|
|
|
|
class OB11PokeEvent extends OB11BaseNoticeEvent {
|
|
notice_type = 'notify';
|
|
sub_type = 'poke';
|
|
target_id = 0;
|
|
user_id = 0;
|
|
}
|
|
|
|
export class OB11FriendPokeEvent extends OB11PokeEvent {
|
|
constructor(user_id: number, target_id: number) {
|
|
super();
|
|
this.target_id = target_id;
|
|
this.user_id = user_id;
|
|
}
|
|
}
|
|
|
|
export class OB11GroupPokeEvent extends OB11PokeEvent {
|
|
group_id: number;
|
|
|
|
constructor(group_id: number, user_id: number = 0, target_id: number = 0,) {
|
|
super();
|
|
this.group_id = group_id;
|
|
this.target_id = target_id;
|
|
this.user_id = user_id;
|
|
}
|
|
}
|