1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

send service and syncing send data (#205)

* send service and syncing send data

* Update send.service.ts
This commit is contained in:
Kyle Spearrin
2020-11-18 13:56:41 -05:00
committed by GitHub
parent 85faee21ee
commit 6563dccf3b
4 changed files with 278 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import { DomainsResponse } from './domainsResponse';
import { FolderResponse } from './folderResponse';
import { PolicyResponse } from './policyResponse';
import { ProfileResponse } from './profileResponse';
import { SendResponse } from './sendResponse';
export class SyncResponse extends BaseResponse {
profile?: ProfileResponse;
@@ -13,6 +14,7 @@ export class SyncResponse extends BaseResponse {
ciphers: CipherResponse[] = [];
domains?: DomainsResponse;
policies?: PolicyResponse[] = [];
sends: SendResponse[] = [];
constructor(response: any) {
super(response);
@@ -46,5 +48,10 @@ export class SyncResponse extends BaseResponse {
if (policies != null) {
this.policies = policies.map((p: any) => new PolicyResponse(p));
}
const sends = this.getResponseProperty('Sends');
if (sends != null) {
this.sends = sends.map((s: any) => new SendResponse(s));
}
}
}