import { UriMatchType } from "../../enums/uriMatchType" ; import { LoginUriData } from "../data/loginUriData" ; import { LoginUriView } from "../view/loginUriView" ; import Domain from "./domainBase" ; import { EncString } from "./encString" ; import { SymmetricCryptoKey } from "./symmetricCryptoKey" ; export class LoginUri extends Domain { uri : EncString ; match : UriMatchType ; constructor ( obj ? , alreadyEncrypted = false ) { super ( ) ; if ( obj == null ) { return ; } this . match = obj . match ; this . buildDomainModel ( this , obj , { uri : null , } , alreadyEncrypted , [ ] ) ; } decrypt ( orgId , encKey ? ) { return this . decryptObj ( new LoginUriView ( this ) , { uri : null , } , orgId , encKey ) ; } toLoginUriData ( ) { const u = new LoginUriData ( ) ; this . buildDataModel ( this , u , { uri : null , } , [ "match" ] ) ; return u ; } }