import { BaseResponse } from "./baseResponse" ; import { SelectionReadOnlyResponse } from "./selectionReadOnlyResponse" ; export class GroupResponse extends BaseResponse { id : string ; organizationId : string ; name : string ; accessAll : boolean ; externalId : string ; constructor ( response ) { super ( response ) ; this . id = this . getResponseProperty ( "Id" ) ; this . organizationId = this . getResponseProperty ( "OrganizationId" ) ; this . name = this . getResponseProperty ( "Name" ) ; this . accessAll = this . getResponseProperty ( "AccessAll" ) ; this . externalId = this . getResponseProperty ( "ExternalId" ) ; } } export class GroupDetailsResponse extends GroupResponse { collections : SelectionReadOnlyResponse [ ] = [ ] ; constructor ( response ) { super ( response ) ; const collections = this . getResponseProperty ( "Collections" ) ; if ( collections != null ) { this . collections = collections . map ( ( c ) => new SelectionReadOnlyResponse ( c ) ) ; } } }