/// <summary> /// User registration. Use users custom token id to register new user /// </summary> /// <param name="_tokenID">Your custom token ID</param> /// <param name="_user">User data</param> /// <param name="_callback">Add completion method</param> public void RegisterNewUserWithCustomTokenID(string _tokenID, User _user, Action <CallbackRegistrationMessage> _callback) { FIREBASE_CONTROLLER.RegisterNewUserWithCustomTokenID(_tokenID, _user, _callback); }
/// <summary> /// Get user last activity by user id. /// </summary> /// <param name="_userID">User ID</param> /// <param name="_callback">Add completion method</param> public void GetUserLastActivity(string _userID, Action <CallbackGetUserActivity> _callback) { FIREBASE_CONTROLLER.GetUserLastActivity(_userID, _callback); }
/// <summary> /// Get download url of user avatar of the current authorized user /// </summary> /// <param name="_userID">User ID</param> /// <param name="_size">Avatar size</param> /// <param name="_callback">Add completion method</param> public void GetProfileImageURL(ImageSize _size, Action <CallbackGetProfileImageURL> _callback) { FIREBASE_CONTROLLER.GetProfileImageURL(PROFILE_CONTROLLER.USER_ID, _size, _callback); }
/// <summary> /// Set user custom value of the current authorized user. All custom values must be configured in plugin settings (EasySystems->EasyProfile->Settings) /// </summary> /// <param name="_valueID">Custom value id</param> /// <param name="_value">Custom value</param> /// <param name="_callback">Add completion method</param> public void SetCustomValue(string _valueID, object _value, Action <CallbackSetUserCustomValue> _callback = null) { FIREBASE_CONTROLLER.SetUserCustomValue(PROFILE_CONTROLLER.USER_ID, _valueID, _value, _callback); }
/// <summary> /// Get user custom value by user ID. All custom values must be configured in plugin settings (EasySystems->EasyProfile->Settings) /// </summary> /// <param name="_userID">User ID</param> /// <param name="_valueID">Value ID</param> /// <param name="_callback">Add completion method</param> public void GetCustomValueByUserID(string _userID, string _valueID, Action <CallbackGetUserCustomValue> _callback) { FIREBASE_CONTROLLER.GetUserCustomValue(_userID, _valueID, _callback); }
/// <summary> /// Get all user of Firebase Database /// </summary> /// <param name="_callback">Add completion method</param> public void GetAllUsers(Action <CallbackGetAllUsers> _callback) { FIREBASE_CONTROLLER.GetAllUsers(_callback); }
/// <summary> /// Search users by string value. You can search for users by name, nickname or phone number. /// </summary> /// <param name="_searchValue">Search Value</param> /// <param name="_callback">Add completion method</param> public void SearchUsers(string _searchValue, Action <CallbackSearchUsers> _callback) { FIREBASE_CONTROLLER.SearchUsers(_searchValue, _callback); }
/// <summary> /// Upload user avatar image to Firebase Storage. /// </summary> /// <param name="_request">Request object. Use RequestUploadImage _request = new RequestUploadImage()</param> /// <param name="_callback">Add upload completion method</param> public void UploadAvatar(RequestUploadImage _request, Action <CallBackUploadImage> _callback = null) { FIREBASE_CONTROLLER.UploadAvatar(_request, _callback); }
/// <summary> /// Get user avatar image from Firebase Storage. /// </summary> /// <param name="_request">Request object. Use RequestGetProfileImage _request = new RequestGetProfileImage()</param> /// <param name="_callback">Add completion method</param> public void GetProfileImage(RequestGetProfileImage _request, Action <CallbackGetProfileImage> _callback = null) { FIREBASE_CONTROLLER.GetProfileImage(_request, _callback); }
/// <summary> /// User authorization. Use custom tokenID to sign in /// </summary> /// <param name="_tokenID">Custom token ID</param> /// <param name="_callback">Add sign in completion method</param> public void LogInWithCustomTokenID(string _tokenID, Action <CallbackLoginMessage> _callback = null) { FIREBASE_CONTROLLER.LogInWithCustomTokenID(_tokenID, _callback); }
/// <summary> /// User authorization. Use custom auth system to sign in /// </summary> /// <param name="_userID">Custom user ID</param> /// <param name="_callback">Add sign in completion method</param> public void LogInWithCustomAuthSystem(string _userID, Action <CallbackLoginMessage> _callback = null) { FIREBASE_CONTROLLER.LogInWithCustomAuthSystem(_userID, _callback); }
/// <summary> /// User authorization. Use users credentials to sign in /// </summary> /// <param name="_credentials"></param> /// <param name="_callback"></param> public void LogIn(UserCredentials _credentials, Action <CallbackLoginMessage> _callback = null) { FIREBASE_CONTROLLER.LogIn(_credentials.UserLogin, _credentials.UserPassword, _callback); }
/// <summary> /// User authorization. Use users email and password to sign in /// </summary> /// <param name="_login">Users email</param> /// <param name="_password">Users password</param> /// <param name="_callback">Add sign in completion method</param> public void LogIn(string _login, string _password, Action <CallbackLoginMessage> _callback = null) { FIREBASE_CONTROLLER.LogIn(_login, _password, _callback); }
/// <summary> /// User registration. Use custom auth system /// </summary> /// <param name="_userID">Custom User ID</param> /// <param name="_user">User data</param> /// <param name="_callback">Add completion method</param> public void RegisterNewUserWithCustomAuthSystem(string _userID, User _user, Action <CallbackRegistrationMessage> _callback) { FIREBASE_CONTROLLER.RegisterNewUserWithCustomAuthSystem(_userID, _user, _callback); }
/// <summary> /// Get user phone number date by user ID /// </summary> /// <param name="_userID">User ID</param> /// <param name="_callback">Add completion method</param> public void GetUserPhoneByID(string _userID, Action <string> _callback) { FIREBASE_CONTROLLER.GetUserPhone(_userID, _callback); }
/// <summary> /// Get user data by user id. /// </summary> /// <param name="_userID">User ID</param> /// <param name="_callback">Add completion method</param> public void GetUserDataByID(string _userID, Action <CallbackGetUserDataMessage> _callback) { FIREBASE_CONTROLLER.GetUserData(_userID, _callback); }
/// <summary> /// Set user phone number of the current authorized user. /// </summary> /// <param name="_value">Phone number value</param> /// <param name="_callback">Add completion method</param> public void SetUserPhone(string _value, Action <CallbackSetUserValue> _callback = null) { FIREBASE_CONTROLLER.SetUserPhone(PROFILE_CONTROLLER.USER_ID, _value, _callback); }
/// <summary> /// Sends an account activation letter to the user in the mail. Use this method after successful user registration. /// </summary> /// <param name="_callback">Add completion method</param> public void SendMailVerification(Action <CallbackSendVerificationEmail> _callback = null) { FIREBASE_CONTROLLER.SendVerifcationEmail(_callback); }
/// <summary> /// Call to log out of the current authorized user. /// </summary> /// <param name="_callback">Add completion method</param> public void LogOut(Action <CallbackLogOut> _callback = null) { FIREBASE_CONTROLLER.LogOut(_callback); }
/// <summary> /// Sends a password reset email to the user. /// </summary> /// <param name="_mail">User email</param> /// <param name="_callback">Add completion method</param> public void SendResetPasswordEmail(string _mail, Action <CallbackSendResetPasswordEmail> _callback = null) { FIREBASE_CONTROLLER.SendResetPasswordEmail(_mail, _callback); }
/// <summary> /// Set user custom value by user ID. All custom values must be configured in plugin settings (EasySystems->EasyProfile->Settings) /// </summary> /// <param name="_userID">User ID</param> /// <param name="_valueID">Custom value id</param> /// <param name="_value">Custom value</param> /// <param name="_callback">Add completion method</param> public void SetCustomValueByUserID(string _userID, string _valueID, object _value, Action <CallbackSetUserCustomValue> _callback = null) { FIREBASE_CONTROLLER.SetUserCustomValue(_userID, _valueID, _value, _callback); }
/// <summary> /// Create or set user data /// </summary> /// <param name="_user">User object</param> /// <param name="_callback">Add completion method</param> public void SetUserData(User _user, Action <CallbackSetUserDataMessage> _callback = null) { FIREBASE_CONTROLLER.SetUserData(_user, _callback); }
/// <summary> /// Get user custom value of the current authorized user. All custom values must be configured in plugin settings (EasySystems->EasyProfile->Settings) /// </summary> /// <param name="_valueID">Value ID</param> /// <param name="_callback">Add completion method</param> public void GetCustomValue(string _valueID, Action <CallbackGetUserCustomValue> _callback) { FIREBASE_CONTROLLER.GetUserCustomValue(PROFILE_CONTROLLER.USER_ID, _valueID, _callback); }
/// <summary> /// Get user data of the current authorized user. /// </summary> /// <param name="_callback">Add completion method</param> public void GetUserData(Action <CallbackGetUserDataMessage> _callback) { FIREBASE_CONTROLLER.GetUserData(PROFILE_CONTROLLER.USER_ID, _callback); }
/// <summary> /// Update user last activity value /// </summary> /// <param name="_callback">Add completion method</param> public void UpdateUserActivity(Action <CallbackSetUserActivity> _callback = null) { FIREBASE_CONTROLLER.UpdateUserActivity(_callback); }
/// <summary> /// Get user registration date by user ID /// </summary> /// <param name="_userID">User ID</param> /// <param name="_callback">Add completion method</param> public void GetUserRegistrationDateByID(string _userID, Action <string> _callback) { FIREBASE_CONTROLLER.GetUserRegistrationDate(_userID, _callback); }
/// <summary> /// Get current server time. Availbale when user is logined /// </summary> /// <param name="_callback">Add completion method</param> public void GetServerTimestamp(Action <CallbackGetServerTimestamp> _callback) { FIREBASE_CONTROLLER.GetServerTimestamp(_callback); }
/// <summary> /// Get user phone number of the current authorized user. /// </summary> /// <param name="_callback">Add completion method</param> public void GetUserPhone(Action <string> _callback) { FIREBASE_CONTROLLER.GetUserPhone(PROFILE_CONTROLLER.USER_ID, _callback); }
/// <summary> /// Get download url of user avatar of the current authorized user /// </summary> /// <param name="_userID">User ID</param> /// <param name="_size">Avatar size</param> /// <param name="_callback">Add completion method</param> public void GetProfileImageURLByUserID(string _userID, ImageSize _size, Action <CallbackGetProfileImageURL> _callback) { FIREBASE_CONTROLLER.GetProfileImageURL(_userID, _size, _callback); }
/// <summary> /// User registration. Use users credentional to register new user /// </summary> /// <param name="_credentials">User credentional object</param> /// <param name="_callback">Add completion method</param> public void RegisterNewUser(UserCredentials _credentials, Action <CallbackRegistrationMessage> _callback) { FIREBASE_CONTROLLER.RegisterNewUser(_credentials.UserLogin, _credentials.UserPassword, _callback); }