mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 21:10:23 +00:00
21 lines
471 B
TypeScript
21 lines
471 B
TypeScript
import { OB11BaseMetaEvent } from './OB11BaseMetaEvent';
|
|
|
|
interface HeartbeatStatus {
|
|
online: boolean | null,
|
|
good: boolean
|
|
}
|
|
|
|
export class OB11HeartbeatEvent extends OB11BaseMetaEvent {
|
|
meta_event_type = 'heartbeat';
|
|
status: HeartbeatStatus;
|
|
interval: number;
|
|
|
|
public constructor(isOnline: boolean, isGood: boolean, interval: number) {
|
|
super();
|
|
this.interval = interval;
|
|
this.status = {
|
|
online: isOnline,
|
|
good: isGood
|
|
};
|
|
}
|
|
} |