mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Merge pull request #687 from atmire/w2p-70504_New-user-registration
New User Registration
This commit is contained in:
14
src/app/core/cache/response.models.ts
vendored
14
src/app/core/cache/response.models.ts
vendored
@@ -12,6 +12,7 @@ import { DSpaceObject } from '../shared/dspace-object.model';
|
||||
import { MetadataSchema } from '../metadata/metadata-schema.model';
|
||||
import { MetadataField } from '../metadata/metadata-field.model';
|
||||
import { ContentSource } from '../shared/content-source.model';
|
||||
import { Registration } from '../shared/registration.model';
|
||||
|
||||
/* tslint:disable:max-classes-per-file */
|
||||
export class RestResponse {
|
||||
@@ -257,4 +258,17 @@ export class ContentSourceSuccessResponse extends RestResponse {
|
||||
super(true, statusCode, statusText);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A successful response containing a Registration
|
||||
*/
|
||||
export class RegistrationSuccessResponse extends RestResponse {
|
||||
constructor(
|
||||
public registration: Registration,
|
||||
public statusCode: number,
|
||||
public statusText: string,
|
||||
) {
|
||||
super(true, statusCode, statusText);
|
||||
}
|
||||
}
|
||||
/* tslint:enable:max-classes-per-file */
|
||||
|
Reference in New Issue
Block a user