// Display user information. void DisplayUserInfo(Firebase.Auth.IUserInfo userInfo, int indentLevel) { string indent = new String(' ', indentLevel * 2); var userProperties = new Dictionary <string, string> { { "Display Name", userInfo.DisplayName }, { "Email", userInfo.Email }, { "User ID", userInfo.UserId } }; foreach (var property in userProperties) { if (!String.IsNullOrEmpty(property.Value)) { DebugLog(String.Format("{0}{1}: {2}", indent, property.Key, property.Value)); } } }
// Display user information. protected void DisplayUserInfo(Firebase.Auth.IUserInfo userInfo, int indentLevel) { string indent = new String(' ', indentLevel * 2); var userProperties = new Dictionary <string, string> { { "Display Name", userInfo.DisplayName }, { "Email", userInfo.Email }, { "Photo URL", userInfo.PhotoUrl != null?userInfo.PhotoUrl.ToString() : null }, { "Provider ID", userInfo.ProviderId }, { "User ID", userInfo.UserId } }; foreach (var property in userProperties) { if (!String.IsNullOrEmpty(property.Value)) { Debug.Log($"{indent}{property.Key}:{property.Value}"); } } }
// Display user information. protected void DisplayUserInfo(Firebase.Auth.IUserInfo userInfo, int indentLevel) { //string indent = new String(' ', indentLevel * 10); var userProperties = new Dictionary <string, string> { { "Display Name", userInfo.DisplayName }, { "Email", userInfo.Email }, { "Photo URL", userInfo.PhotoUrl != null?userInfo.PhotoUrl.ToString() : null }, { "Provider ID", userInfo.ProviderId }, { "User ID", userInfo.UserId } }; foreach (var property in userProperties) { if (!String.IsNullOrEmpty(property.Value)) { //DebugLog(String.Format("{0}{1}: {2}", " ", property.Key, property.Value)); } } }
// Display user information. protected void DisplayUserInfo(Firebase.Auth.IUserInfo userInfo, int indentLevel) { string indent = new String(' ', indentLevel * 2); var userProperties = new Dictionary <string, string> { { "Display Name", userInfo.DisplayName }, { "Email", userInfo.Email }, { "Photo URL", userInfo.PhotoUrl != null?userInfo.PhotoUrl.ToString() : null }, { "Provider ID", userInfo.ProviderId }, { "User ID", userInfo.UserId } }; foreach (var property in userProperties) { if (!String.IsNullOrEmpty(property.Value)) { //********************************************************************************************************************* Global.faculty_name = getFacultynameFromEmail(userInfo.Email); Firebase.Sample.Database.UIHandler.email = userInfo.Email; //********************************************************************************************************************* DebugLog(String.Format("{0}{1}: {2}", indent, property.Key, property.Value)); } } }
public UserInfoWrapper(Firebase.Auth.IUserInfo userInfo) { _userInfo = userInfo ?? throw new ArgumentNullException(nameof(userInfo)); }
public UserInfoWrapper(Firebase.Auth.IUserInfo userInfo) { _userInfo = userInfo; }