@@ -26,11 +26,21 @@ public sealed class FirebaseAccountLinkException : System.Exception
26
26
{
27
27
/// Initializes a new FirebaseAccountLinkException, with the given error code and
28
28
/// message and the AdditionalUserInfo returned from the Firebase auth service.
29
+ [ System . Obsolete ( "Use `FirebaseAccountLinkException(int, string, AuthResult)` instead" , false ) ]
29
30
public FirebaseAccountLinkException ( int errorCode , string message ,
30
31
SignInResult signInResult ) : base ( message )
31
32
{
32
33
ErrorCode = errorCode ;
33
- Result = signInResult ;
34
+ result_DEPRECATED = signInResult ;
35
+ }
36
+
37
+ /// Initializes a new FirebaseAccountLinkException, with the given error code and
38
+ /// message and the AdditionalUserInfo returned from the Firebase auth service.
39
+ public FirebaseAccountLinkException ( int errorCode , string message ,
40
+ AuthResult authResult ) : base ( message )
41
+ {
42
+ ErrorCode = errorCode ;
43
+ result = authResult ;
34
44
}
35
45
36
46
/// Returns the Auth defined non-zero error code.
@@ -43,10 +53,12 @@ public FirebaseAccountLinkException(int errorCode, string message,
43
53
/// the credential may be used to sign-in the user into Firebase with
44
54
/// Firebase.Auth.SignInWithCredentialAsync.
45
55
public AdditionalUserInfo UserInfo {
46
- get { return Result . Info ; }
56
+ get { return ( result != null ) ? result . AdditionalUserInfoInternal :
57
+ ( result_DEPRECATED != null ) ? result_DEPRECATED . Info : null ; }
47
58
}
48
59
49
- private SignInResult Result { get ; set ; }
60
+ private SignInResult result_DEPRECATED = null ;
61
+ private AuthResult result = null ;
50
62
}
51
63
52
64
}
0 commit comments