1
0

Added services and models

This commit is contained in:
Giuseppe Digilio
2019-03-08 16:38:05 +01:00
parent ebb77b2a78
commit f07aafaf15
28 changed files with 837 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
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;
}
}