mirror of
https://github.com/bitwarden/jslib
synced 2025-12-21 10:43:23 +00:00
Split jslib into multiple modules (#363)
* Split jslib into multiple modules
This commit is contained in:
18
common/src/models/api/loginUriApi.ts
Normal file
18
common/src/models/api/loginUriApi.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user