UNPKG

@tak-ps/node-cot

Version:

Lightweight JavaScript library for parsing and manipulating TAK messages

27 lines 822 B
import Util from '../utils/util.js'; import { v4 as randomUUID } from 'uuid'; import CoT from '../cot.js'; export class FileShare extends CoT { constructor(fileshare) { const cot = { event: { _attributes: Util.cot_event_attr('b-f-t-r', 'h-e'), point: Util.cot_point(), detail: { fileshare: { _attributes: fileshare }, ackrequest: { _attributes: { uid: randomUUID(), tag: 'transfer', ackrequested: true } } } } }; super(cot); } } //# sourceMappingURL=fileshare.js.map