2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
import { Router} from '@angular/router';
|
|
|
|
|
|
|
|
// export class GuardHelper{
|
|
|
|
// constructor(private router: Router) {}
|
|
|
|
//
|
|
|
|
// redirect(url:string, errorCode:number, redirectUrl:string){
|
|
|
|
// this.router.navigate([url], { queryParams: { "errorCode": errorCode, "redirectUrl": redirectUrl } });
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
export class ErrorCodes {
|
|
|
|
public static NOT_LOGGIN:number =1;
|
|
|
|
public static NOT_ADMIN:number =2;
|
|
|
|
public static NOT_VALID:number =3;
|
2018-02-16 11:24:00 +01:00
|
|
|
public static NOT_CONNECT_ADMIN:number =4;
|
|
|
|
public static NO_COMMUNITY:number =5;
|
2018-04-16 13:49:35 +02:00
|
|
|
public static NOT_SUBSCIBER:number =6;
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
}
|