mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
19 lines
512 B
TypeScript
19 lines
512 B
TypeScript
import { CipherWithIdRequest } from './cipherWithIdRequest';
|
|
|
|
import { Cipher } from '../domain/cipher';
|
|
|
|
export class CipherBulkShareRequest {
|
|
ciphers: CipherWithIdRequest[];
|
|
collectionIds: string[];
|
|
|
|
constructor(ciphers: Cipher[], collectionIds: string[]) {
|
|
if (ciphers != null) {
|
|
this.ciphers = [];
|
|
ciphers.forEach((c) => {
|
|
this.ciphers.push(new CipherWithIdRequest(c));
|
|
});
|
|
}
|
|
this.collectionIds = collectionIds;
|
|
}
|
|
}
|