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