import { Payload } from "../../transport" ; import { NfcCmd } from "../nfc" ; TODO export const CtapNfcPingCmd = 0x4 ; export class CtapNfcPingReq implements NfcCmd { data ! : Buffer ; initialize ( data ) { this . data = data ; return this ; } serialize ( ) { return { cmd : CtapNfcPingCmd , data : this . data } ; } deserialize ( payload ) { throw new Error ( "Method not implemented." ) ; } } export class CtapNfcPingRes implements NfcCmd { 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 ; } }