import { Payload } from "../../transport" ; import { BleCmd } from "../ble" ; export const CtapBlePingCmd = 0x81 ; export class CtapBlePingReq implements BleCmd { data : Buffer ; constructor ( data ) { this . data = data ; } initialize ( ... args ) { throw new Error ( "Method not implemented." ) ; } serialize ( ) { return { cmd : CtapBlePingCmd , data : this . data } ; } deserialize ( payload ) { throw new Error ( "Method not implemented." ) ; } } export class CtapBlePingRes implements BleCmd { data ! : Buffer ; initialize ( ... args ) { throw new Error ( "Method not implemented." ) ; } serialize ( ) { throw new Error ( "Method not implemented." ) ; } deserialize ( payload ) { this . data = Buffer . alloc ( payload . length ) ; payload . copy ( this . data ) ; return this ; } }