1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2026-05-16 09:21:12 +02:00

refactoring middleware rendering methods

This commit is contained in:
Braun Patrik
2016-03-26 11:19:10 +01:00
parent 7d246dc909
commit 9ceac016aa
17 changed files with 167 additions and 98 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
import {Error} from "./Error";
export class Message<T>{
constructor(public errors:Error,public result:T){}
public error:Error = null;
public result:T = null;
constructor(error:Error, result:T){
this.error = error;
this.result = result;
}
}