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