1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-18 09:13:19 +00:00
Files
jslib/common/src/models/api/loginUriApi.ts
Oscar Hinton 1016bbfb9e Split jslib into multiple modules (#363)
* Split jslib into multiple modules
2021-06-03 18:58:57 +02:00

19 lines
497 B
TypeScript

import { BaseResponse } from '../response/baseResponse';
import { UriMatchType } from '../../enums/uriMatchType';
export class LoginUriApi extends BaseResponse {
uri: string;
match: UriMatchType = null;
constructor(data: any = null) {
super(data);
if (data == null) {
return;
}
this.uri = this.getResponseProperty('Uri');
const match = this.getResponseProperty('Match');
this.match = match != null ? match : null;
}
}