forked from hazza/dspace-angular
18 lines
368 B
TypeScript
18 lines
368 B
TypeScript
import { RemoteDataError } from '../data/remote-data-error';
|
|
|
|
/**
|
|
* A class to represent the data retrieved by after processing a message
|
|
*/
|
|
export class MessageDataResponse {
|
|
constructor(
|
|
private isSuccessful: boolean,
|
|
public error?: RemoteDataError,
|
|
public payload?: any
|
|
) {
|
|
}
|
|
|
|
get hasSucceeded(): boolean {
|
|
return this.isSuccessful;
|
|
}
|
|
}
|