import { Preference } from '../../../protocol/preference/preference' ; import { CumulatedStatistic } from '../../../protocol/statistic/cumulatedstatistic' ; import { Statistic } from '../../../protocol/statistic/statistic' ; import { Metadata , Repertoire } from '../../../protocol/storage' ; import { ServerWrapper } from './serverwrapper' ; export class DelegatingServerWrapper implements ServerWrapper { private delegate_ : ServerWrapper ; constructor ( delegate ) { this . delegate_ = delegate ; } setDelegate ( delegate ) { this . delegate_ = delegate ; } getAllRepertoireMetadata ( ) { return this . delegate_ . getAllRepertoireMetadata ( ) ; } loadRepertoire ( repertoireId ) { return this . delegate_ . loadRepertoire ( repertoireId ) ; } updateRepertoire ( repertoireId , repertoire ) { return this . delegate_ . updateRepertoire ( repertoireId , repertoire ) ; } createRepertoire ( ) { return this . delegate_ . createRepertoire ( ) ; } deleteRepertoire ( repertoireId ) { return this . delegate_ . deleteRepertoire ( repertoireId ) ; } setPreference ( preference ) { return this . delegate_ . setPreference ( preference ) ; } getPreference ( ) { return this . delegate_ . getPreference ( ) ; } recordStatistics ( statisticList ) { return this . delegate_ . recordStatistics ( statisticList ) ; } loadCumulatedStatistics ( repertoireId ) { return this . delegate_ . loadCumulatedStatistics ( repertoireId ) ; } copyRepertoireAsPrivelegedUser ( repertoireId ) { return this . delegate_ . copyRepertoireAsPrivelegedUser ( repertoireId ) ; } }