mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 06:23:03 +00:00
15 lines
529 B
TypeScript
15 lines
529 B
TypeScript
import { RestRequest } from './rest-request.model';
|
|
import { GenericConstructor } from '../shared/generic-constructor';
|
|
import { ResponseParsingService } from './parsing.service';
|
|
|
|
/**
|
|
* A RestRequest with a method to retrieve the ResponseParsingService needed for its response
|
|
*/
|
|
export abstract class RestRequestWithResponseParser extends RestRequest {
|
|
|
|
/**
|
|
* Get the ResponseParsingService needed to parse the response to this request
|
|
*/
|
|
abstract getResponseParser(): GenericConstructor<ResponseParsingService>;
|
|
}
|