mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
file response for CLI (#499)
This commit is contained in:
parent
ed8d39ed85
commit
4c55d84d21
13
node/src/cli/models/response/fileResponse.ts
Normal file
13
node/src/cli/models/response/fileResponse.ts
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user