|
| | LCUser () |
| |
| async Task< LCUser > | SignUp () |
| | Signs up a new user.
|
| |
| Task | AssociateAuthData (Dictionary< string, object > authData, string platform) |
| | Associates this user with a third party authData.
|
| |
| Task | AssociateAuthDataAndUnionId (Dictionary< string, object > authData, string platform, string unionId, LCUserAuthDataLoginOption option=null) |
| | Associates this user with a third party authData and unionId.
|
| |
| Task | DisassociateWithAuthData (string platform) |
| | Unlinks a user from a third party platform.
|
| |
| async Task | RefreshSessionToken () |
| |
| async Task | UpdatePassword (string oldPassword, string newPassword) |
| | Updates newPassword safely with oldPassword.
|
| |
| async Task< bool > | IsAuthenticated () |
| | Checks whether the current sessionToken is valid.
|
| |
| async Task | SaveToLocal () |
| | Save to local.
|
| |
| new async Task< LCUser > | Fetch (IEnumerable< string > keys=null, IEnumerable< string > includes=null) |
| | Fetches this object from the cloud.
|
| |
| async Task | Follow (string targetId, Dictionary< string, object > attrs=null) |
| | Follows a user.
|
| |
| async Task | Unfollow (string targetId) |
| | Unfollows a user.
|
| |
| LCQuery< LCObject > | FollowerQuery () |
| | Constructs a follower query.
|
| |
| LCQuery< LCObject > | FolloweeQuery () |
| | Constructs a followee query.
|
| |
| LCQuery< LCObject > | FriendshipQuery () |
| | Constructs a friend query.
|
| |
| LCQuery< LCObject > | FriendshipBlockQuery () |
| | Constructs a block query for friend.
|
| |
| async Task< LCFollowersAndFollowees > | GetFollowersAndFollowees (bool includeFollower=false, bool includeFollowee=false, bool returnCount=false) |
| | Gets the followers and followees of the currently logged in user.
|
| |
| new async Task< LCUser > | Save (bool fetchWhenSave=false, LCQuery< LCObject > query=null) |
| |
| void | DisableBeforeHook () |
| | Disable hooks before saving / updating / deleting LCObject.
|
| |
| void | DisableAfterHook () |
| | Disable hooks after saving / updating / deleting LCObject.
|
| |
| void | IgnoreHook (string hookName) |
| | Ignores the hook for this LCObject.
|
| |
| ReadOnlyCollection< string > | GetUpdatedKeys () |
| | Gets the updated keys of this LCObject.
|
| |
| | LCObject (string className) |
| | Constructs a new LCObject with no data in it. A LCObject constructed in this way will not have an ObjectedId and will not persist in the cloud until Save(bool, LCQuery<LCObject>)) is called.
|
| |
| void | Unset (string key) |
| | Removes the key.
|
| |
| void | AddRelation (string key, LCObject value) |
| | Creates a LCRelation<T> value for a key.
|
| |
| void | RemoveRelation (string key, LCObject value) |
| | Removes a LCRelation<T> value for a key.
|
| |
| void | Increment (string key, object value) |
| | Atomically increments the value of the given key with amount.
|
| |
| void | Add (string key, object value) |
| | Atomically adds value to the end of the array key.
|
| |
| void | AddAll (string key, IEnumerable values) |
| | Atomically adds values to the end of the array key.
|
| |
| void | AddUnique (string key, object value) |
| | Atomically adds value to the array key, only if not already present.
|
| |
| void | AddAllUnique (string key, IEnumerable values) |
| | Atomically adds values to the array key, only if not already present.
|
| |
| void | Remove (string key, object value) |
| | Atomically removes all value from the array key.
|
| |
| void | RemoveAll (string key, IEnumerable values) |
| | Atomically removes all values from the array key.
|
| |
| async Task< LCObject > | Save (bool fetchWhenSave=false, LCQuery< LCObject > query=null) |
| | Saves this object to the cloud.
|
| |
| async Task | Delete () |
| | Deletes this object in the cloud.
|
| |
| async Task< LCObject > | Fetch (IEnumerable< string > keys=null, IEnumerable< string > includes=null) |
| | Fetches this object from the cloud.
|
| |
| override string | ToString () |
| | Serializes this LCObject to a JSON string.
|
| |
| void | Merge (LCObjectData objectData) |
| |
|
| static async Task< LCUser > | GetCurrent () |
| | Gets the currently logged in LCUser with a valid session, from memory or disk if necessary.
|
| |
| static async Task | RequestLoginSMSCode (string mobile) |
| | Requests sending a login sms code.
|
| |
| static async Task< LCUser > | SignUpOrLoginByMobilePhone (string mobile, string code) |
| | Signs up or signs in a user with their mobile number and verification code.
|
| |
| static Task< LCUser > | Login (string username, string password) |
| | Signs in a user with their username and password.
|
| |
| static Task< LCUser > | LoginByEmail (string email, string password) |
| | Signs in a user with their email and password.
|
| |
| static Task< LCUser > | LoginByMobilePhoneNumber (string mobile, string password) |
| | Signs in a user with their mobile number and password.
|
| |
| static Task< LCUser > | LoginBySMSCode (string mobile, string code) |
| | Signs in a user with their mobile number and verification code.
|
| |
| static Task< LCUser > | LoginWithAuthData (Dictionary< string, object > authData, string platform, LCUserAuthDataLoginOption option=null) |
| | Signs up or signs in a user with third party authData.
|
| |
| static Task< LCUser > | LoginWithAuthDataAndUnionId (Dictionary< string, object > authData, string platform, string unionId, LCUserAuthDataLoginOption option=null) |
| | Signs up or signs in a user with third party authData and unionId.
|
| |
| static async Task< LCUser > | LoginAnonymously () |
| | Creates an anonymous user.
|
| |
| static async Task | RequestEmailVerify (string email) |
| | Requests a verification email to be sent to a user's email address.
|
| |
| static async Task | RequestMobilePhoneVerify (string mobile) |
| | Requests a verification SMS to be sent to a user's mobile number.
|
| |
| static async Task | VerifyMobilePhone (string mobile, string code) |
| | Requests to verify a user's mobile number with sms code they received.
|
| |
| static async Task< LCUser > | BecomeWithSessionToken (string sessionToken) |
| | Signs in a user with a sessionToken.
|
| |
| static async Task | RequestPasswordReset (string email) |
| | Requests a password reset email to be sent to a user's email address.
|
| |
| static async Task | RequestPasswordResetBySmsCode (string mobile) |
| | Requests a reset password sms code to be sent to a user's mobile number.
|
| |
| static async Task | ResetPasswordBySmsCode (string mobile, string code, string newPassword) |
| | Resets a user's password via mobile phone.
|
| |
| static Task | Logout () |
| | Logs out the currently logged in user session.
|
| |
| static LCQuery< LCUser > | GetQuery () |
| | Constructs a LCQuery for LCUser.
|
| |
| static async Task | RequestSMSCodeForUpdatingPhoneNumber (string mobile, int ttl=360, string captchaToken=null) |
| | Requests an SMS code for updating phone number.
|
| |
| static async Task | VerifyCodeForUpdatingPhoneNumber (string mobile, string code) |
| | Verify code for updating phone number.
|
| |
| static LCUser | GenerateUser (LCObjectData objectData) |
| |
| static async Task< ReadOnlyCollection< LCUser > > | StrictlyFind (LCUserQueryCondition condition) |
| |
| static async Task< string > | RetrieveShortToken () |
| |
| static LCObject | CreateWithoutData (string className, string objectId) |
| | Creates a reference to an existing LCObject.
|
| |
| static LCObject | Create (string className) |
| | Creates a new LCObject.
|
| |
| static async Task< List< LCObject > > | SaveAll (IEnumerable< LCObject > objects) |
| | Saves each object in the provided list.
|
| |
| static async Task | DeleteAll (IEnumerable< LCObject > objects) |
| | Deletes each object in the provided list.
|
| |
| static async Task< IEnumerable< LCObject > > | FetchAll (IEnumerable< LCObject > objects) |
| | Fetches all of the objects in the provided list.
|
| |
| static void | RegisterSubclass< T > (string className, Func< T > constructor, string endpoint=null) |
| | Registers a custom subclass type with LeanCloud SDK, enabling strong-typing of those LCObjects whenever they appear.
|
| |
| static LCObject | ParseObject (string json) |
| | Deserializes a JSON string to a LCObject.
|
| |
| static string | GetClassEndpoint (string className) |
| |
LCUser represents a user for a LeanCloud application.