import { BaseResponse } from "../baseResponse" ; import { PermissionsApi } from "../../api/permissionsApi" ; import { ProviderUserStatusType } from "../../../enums/providerUserStatusType" ; import { ProviderUserType } from "../../../enums/providerUserType" ; export class ProviderUserResponse extends BaseResponse { id : string ; userId : string ; type : ProviderUserType ; status : ProviderUserStatusType ; permissions : PermissionsApi ; constructor ( response ) { super ( response ) ; this . id = this . getResponseProperty ( "Id" ) ; this . userId = this . getResponseProperty ( "UserId" ) ; this . type = this . getResponseProperty ( "Type" ) ; this . status = this . getResponseProperty ( "Status" ) ; this . permissions = new PermissionsApi ( this . getResponseProperty ( "Permissions" ) ) ; } } export class ProviderUserUserDetailsResponse extends ProviderUserResponse { name : string ; email : string ; constructor ( response ) { super ( response ) ; this . name = this . getResponseProperty ( "Name" ) ; this . email = this . getResponseProperty ( "Email" ) ; } }