Skip to content

Commit dfd7030

Browse files
author
Mohammad Ebrahim Sepehr
committed
UserEvents upgraded
1 parent dbf207c commit dfd7030

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

saffronEvents/UserEvent.as

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,23 @@ package saffronEvents
1616
/**User information is not correct to make him loggin*/
1717
public static const LOGIN_FAILD:String = "LOGIN_FAILD" ;
1818

19+
/**Register done*/
20+
public static const REGISTER_COMPLETED:String = "REGISTER_COMPLETED" ;
21+
22+
/**Register faild*/
23+
public static const REGISTER_FAILD:String = "REGISTER_FAILD" ;
24+
1925
/**0: no error*/
2026
public var errorCode:int ;
2127

22-
public function UserEvent(type:String,ErrorCode:int=0)
28+
/**You can pass any error string on this parameter*/
29+
public var errorText:String ;
30+
31+
public function UserEvent(type:String,ErrorCode:int=0,ErrorText:String='')
2332
{
2433
super(type);
2534
errorCode = ErrorCode ;
35+
errorText = ErrorText ;
2636
}
2737
}
2838
}

0 commit comments

Comments
 (0)