We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbf207c commit dfd7030Copy full SHA for dfd7030
1 file changed
saffronEvents/UserEvent.as
@@ -16,13 +16,23 @@ package saffronEvents
16
/**User information is not correct to make him loggin*/
17
public static const LOGIN_FAILD:String = "LOGIN_FAILD" ;
18
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
25
/**0: no error*/
26
public var errorCode:int ;
27
- 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='')
32
{
33
super(type);
34
errorCode = ErrorCode ;
35
+ errorText = ErrorText ;
36
}
37
38
0 commit comments