import { ResponseConfigInterface } from '../Config' ; import { InformationalResponse } from './InformationalResponse' ; import { RedirectionResponse } from './RedirectionResponse' ; import { ServerErrorResponse } from './ServerErrorResponse' ; import { ClientErrorResponse } from './ClientErrorResponse' ; import { SuccessfulResponse } from './SuccessfulResponse' ; export class ResponseService { private config : ResponseConfigInterface ; constructor ( config ) { this . config = config ; } public informational ( ) { return this . config . responses . informational ; } public redirection ( ) { return this . config . responses . redirection ; } public serverError ( ) { return this . config . responses . serverError ; } public clientError ( ) { return this . config . responses . clientError ; } public successful ( ) { return this . config . responses . successful ; } }