@@ -1252,6 +1252,22 @@ static CppInstanceManager<Auth> g_auth_instances;
1252
1252
public string SmsCode { get { return SmsCodeInternal; } }
1253
1253
%}
1254
1254
1255
+ %attributestring(firebase::auth::PhoneAuthCredential, std::string, SmsCodeInternal, sms_code);
1256
+ %typemap(cscode) firebase::auth::PhoneAuthCredential %{
1257
+ // / Gets the auto-retrieved SMS verification code if applicable.
1258
+ // /
1259
+ // / This method is supported on Android devices only. It will return empty strings on
1260
+ // / other platforms.
1261
+ // /
1262
+ // / When SMS verification is used, you will be called back first via
1263
+ // / @ref PhoneAuthProvider.CodeSent, and later
1264
+ // / PhoneAuthProvider.VerificationCompleted with a PhoneAuthCredential containing
1265
+ // / a non-null SMS code if auto-retrieval succeeded. If Firebase used another approach
1266
+ // / to verify the phone number and triggers a callback via
1267
+ // / @ref PhoneAuthProvider.VerificationCompleted, then the SMS code can be null.
1268
+ public string SmsCode { get { return SmsCodeInternal; } }
1269
+ %}
1270
+
1255
1271
%typemap(csclassmodifiers) firebase::auth::FederatedAuthProvider " public class" ;
1256
1272
1257
1273
%typemap(csclassmodifiers) firebase::auth::FederatedOAuthProvider
@@ -1731,11 +1747,25 @@ static CppInstanceManager<Auth> g_auth_instances;
1731
1747
%}
1732
1748
1733
1749
%typemap(cscode) firebase::auth::UserInfoInterface %{
1750
+ // / Gets the photo url associated with the user, if any.
1734
1751
public System.Uri PhotoUrl {
1735
1752
get {
1736
1753
return Firebase.FirebaseApp .UrlStringToUri (PhotoUrlInternal);
1737
1754
}
1738
1755
}
1756
+
1757
+ // / @deprecated Please use @ref PhoneNumber instead.
1758
+ // /
1759
+ // / Gets the phone number for the user, in E.164 format.
1760
+ [System.Obsolete (" Please use `PhoneNumber` instead" , false )]
1761
+ public string phone_number {
1762
+ get { return PhoneNumberInternal; }
1763
+ }
1764
+
1765
+ // / Gets the phone number for the user, in E.164 format.
1766
+ public string PhoneNumber {
1767
+ get { return PhoneNumberInternal; }
1768
+ }
1739
1769
%}
1740
1770
1741
1771
@@ -1845,6 +1875,7 @@ static CppInstanceManager<Auth> g_auth_instances;
1845
1875
%attributestring(firebase::auth::UserInfoInterface, std::string, DisplayName, display_name);
1846
1876
%attributestring(firebase::auth::UserInfoInterface, std::string, PhotoUrlInternal, photo_url);
1847
1877
%attributestring(firebase::auth::UserInfoInterface, std::string, ProviderId, provider_id);
1878
+ %attributestring(firebase::auth::UserInfoInterface, std::string, PhoneNumberInternal, phone_number);
1848
1879
1849
1880
1850
1881
%typemap(csinterfaces) firebase::auth::UserInfoInterface
0 commit comments