From 4c55d84d21e187892ae1ba7561fd1797c21e406d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 23 Sep 2021 13:49:40 -0400 Subject: [PATCH] file response for CLI (#499) --- node/src/cli/models/response/fileResponse.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 node/src/cli/models/response/fileResponse.ts diff --git a/node/src/cli/models/response/fileResponse.ts b/node/src/cli/models/response/fileResponse.ts new file mode 100644 index 0000000000..2e832dfce9 --- /dev/null +++ b/node/src/cli/models/response/fileResponse.ts @@ -0,0 +1,13 @@ +import { BaseResponse } from './baseResponse'; + +export class FileResponse implements BaseResponse { + object: string; + data: Buffer; + fileName: string; + + constructor(data: Buffer, fileName: string) { + this.object = 'file'; + this.data = data; + this.fileName = fileName; + } +}