mirror of
https://github.com/bitwarden/browser
synced 2026-02-19 02:44:01 +00:00
* PM-28183 implemented new sends filter and search design * PM-28183 resolved table issue fallout from merge conflict * PM-28183 resolved browser paste url issue * PM-28183 put new feature behind feature flag * PM-28183 resolved feature flag * PM-28183 resolved type-safe approach pr comment * PM-28183 resolved DesktopSendUIRefresh feature flag is enabled. pr comment * PM-28183 restored SendUIRefresh * PM-28183 resolved query parameter subscription pr comment * PM-28183 resolved pr comment re enum like objects * PM-28183 resolved remove enum like objects pr comment * PM-28183 resolved pr comment re defining filteredSends member variable * PM-28183 resolved pr comment re Code Duplication in syncCompleted Handler * PM-28183 resolved pr comment re Floating Promise * PM-28183 restored feature flag * PM-28183 resolved pr comment re Dual Binding Pattern * PM28183 resolved options cell button pr comment * PM 28183 resolved pr comment re Incorrect CSS Class - Breaking Layout * PM 28183 resolved pr comment re uery Param Update Causes Redundant Filter Application * PM-28183 resolved lint issues * PM 28183 resolved lint issues * PM-28183 resolved type issue with import * PM-28183 resolved import in failling test * chore: rerun web build * PM-28183 resolved build issues * PM-28183 resolved build issues * PM-28183 resolved lint issues
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
// FIXME: Update this file to be type safe and remove this and next line
|
|
// @ts-strict-ignore
|
|
import { BaseResponse } from "../../../../models/response/base.response";
|
|
import { SendType } from "../../types/send-type";
|
|
import { SendFileApi } from "../api/send-file.api";
|
|
import { SendTextApi } from "../api/send-text.api";
|
|
|
|
export class SendAccessResponse extends BaseResponse {
|
|
id: string;
|
|
type: SendType;
|
|
name: string;
|
|
file: SendFileApi;
|
|
text: SendTextApi;
|
|
expirationDate: Date;
|
|
creatorIdentifier: string;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.id = this.getResponseProperty("Id");
|
|
this.type = this.getResponseProperty("Type");
|
|
this.name = this.getResponseProperty("Name");
|
|
|
|
const text = this.getResponseProperty("Text");
|
|
if (text != null) {
|
|
this.text = new SendTextApi(text);
|
|
}
|
|
|
|
const file = this.getResponseProperty("File");
|
|
if (file != null) {
|
|
this.file = new SendFileApi(file);
|
|
}
|
|
|
|
this.expirationDate = this.getResponseProperty("ExpirationDate");
|
|
this.creatorIdentifier = this.getResponseProperty("CreatorIdentifier");
|
|
}
|
|
}
|