import { FunctionType , MessagePriority , MessageType , } from "../message/Constants" ; import { Message , messageTypes , priority } from "../message/Message" ; @ messageTypes ( MessageType . Request , FunctionType . HardReset ) @ priority ( MessagePriority . Controller ) export class HardResetRequest extends Message { public serialize ( ) { this . payload = Buffer . from ( [ this . callbackId ] ) ; return super . serialize ( ) ; } }