2016-03-12 22:19:24 +01:00
|
|
|
import {Error} from "./Error";
|
|
|
|
|
|
|
|
export class Message<T>{
|
2016-03-26 11:19:10 +01:00
|
|
|
public error:Error = null;
|
|
|
|
public result:T = null;
|
|
|
|
constructor(error:Error, result:T){
|
|
|
|
this.error = error;
|
|
|
|
this.result = result;
|
|
|
|
}
|
2016-03-12 22:19:24 +01:00
|
|
|
}
|