mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
fix circular dependency issues relating to request models
This commit is contained in:
14
src/app/core/data/rest-request-with-response-parser.model.ts
Normal file
14
src/app/core/data/rest-request-with-response-parser.model.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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>;
|
||||
}
|
Reference in New Issue
Block a user