public class LCUser extends LCObject
| Modifier and Type | Class and Description |
|---|---|
static class |
LCUser.SNS_PLATFORM |
LCObject.Hook| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_EMAIL |
static String |
ATTR_MOBILEPHONE |
static String |
ATTR_SESSION_TOKEN |
static String |
ATTR_USERNAME |
static String |
CLASS_NAME |
static String |
FOLLOWEE_TAG |
static String |
FOLLOWER_TAG |
acl, className, endpointClassName, KEY_ACL, KEY_CLASSNAME, KEY_CREATED_AT, KEY_IGNORE_HOOKS, KEY_OBJECT_ID, KEY_UPDATED_AT, logger, objectId, operations, serverData, totallyOverwrite, UUID_LEN| Constructor and Description |
|---|
LCUser()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<LCFriendshipRequest> |
acceptFriendshipRequest(LCFriendshipRequest request,
Map<String,Object> attributes)
accept a friendship.
|
io.reactivex.Observable<LCFriendshipRequest> |
acceptFriendshipRequest(LCUser asAuthenticatedUser,
LCFriendshipRequest request,
Map<String,Object> attributes)
accept a friendship.
|
static void |
alwaysUseSubUserClass(Class<? extends LCUser> clazz)
通过设置此方法,所有关联对象中的 AVUser 对象都会被强转成注册的 AVUser 子类对象
|
io.reactivex.Observable<LCFriendshipRequest> |
applyFriendshipInBackground(LCUser asAuthenticatedUser,
LCUser friend,
Map<String,Object> attributes)
apply new friendship to someone.
|
io.reactivex.Observable<LCFriendshipRequest> |
applyFriendshipInBackground(LCUser friend,
Map<String,Object> attributes)
apply new friendship to someone.
|
io.reactivex.Observable<LCUser> |
associateWithAuthData(Map<String,Object> authData,
String platform)
associate with third party data.
|
io.reactivex.Observable<LCUser> |
associateWithAuthData(Map<String,Object> authData,
String platform,
String unionId,
String unionIdPlatform,
boolean asMainAccount)
associate with third party data.
|
static LCUser |
becomeWithSessionToken(String sessionToken)
instantiate AVUser object with sessionToken(synchronized)
|
static LCUser |
becomeWithSessionToken(String sessionToken,
boolean saveToCurrentUser)
instantiate AVUser object with sessionToken(synchronized)
|
static <T extends LCUser> |
becomeWithSessionToken(String sessionToken,
boolean saveToCurrentUser,
Class<T> clazz)
instantiate AVUser object with sessionToken(synchronized)
|
static <T extends LCUser> |
becomeWithSessionToken(String sessionToken,
Class<T> clazz)
instantiate AVUser object with sessionToken(synchronized)
|
static io.reactivex.Observable<? extends LCUser> |
becomeWithSessionTokenInBackground(String sessionToken)
instantiate AVUser object with sessionToken(asynchronous)
|
static io.reactivex.Observable<? extends LCUser> |
becomeWithSessionTokenInBackground(String sessionToken,
boolean saveToCurrentUser)
instantiate AVUser object with sessionToken(asynchronous)
|
static <T extends LCUser> |
becomeWithSessionTokenInBackground(String sessionToken,
boolean saveToCurrentUser,
Class<T> clazz)
instantiate AVUser object with sessionToken(asynchronous)
|
static <T extends LCUser> |
becomeWithSessionTokenInBackground(String sessionToken,
Class<T> clazz)
instantiate AVUser object with sessionToken(asynchronous)
|
io.reactivex.Observable<JSONObject> |
blockFriendInBackground(String objectId)
block somebody in background.
|
static <T extends LCUser> |
cast(LCUser user,
Class<T> clazz)
通过这个方法可以将 AVUser 对象强转为其子类对象
|
static void |
changeCurrentUser(LCUser newUser,
boolean save)
change current user instance.
|
io.reactivex.Observable<Boolean> |
checkAuthenticatedInBackground()
check authenticated status in background.
|
static <T extends LCUser> |
createWithSessionToken(Class<T> clazz,
String objectId,
String sessionToken) |
static LCUser |
createWithSessionToken(String objectId,
String sessionToken) |
static LCUser |
currentUser()
获取当前登录用户
|
io.reactivex.Observable<LCFriendshipRequest> |
declineFriendshipRequest(LCFriendshipRequest request)
decline a friendship.
|
io.reactivex.Observable<LCFriendshipRequest> |
declineFriendshipRequest(LCUser asAuthenticatedUser,
LCFriendshipRequest request)
decline a friendship.
|
static void |
disableAutomaticUser() |
io.reactivex.Observable<LCUser> |
dissociateWithAuthData(String platform)
dissociate with third party data.
|
static void |
enableAutomaticUser() |
LCQuery<LCObject> |
followeeQuery()
get followee query.
|
static <T extends LCObject> |
followeeQuery(String userObjectId,
Class<T> clazz)
get followee query.
|
LCQuery<LCObject> |
followerQuery()
get follower query.
|
static <T extends LCObject> |
followerQuery(String userObjectId,
Class<T> clazz)
get follower query.
|
io.reactivex.Observable<JSONObject> |
followInBackground(LCUser asAuthenticatedUser,
String userObjectId)
follow somebody in background.
|
io.reactivex.Observable<JSONObject> |
followInBackground(LCUser asAuthenticatedUser,
String userObjectId,
Map<String,Object> attributes)
follow somebody in background.
|
io.reactivex.Observable<JSONObject> |
followInBackground(String userObjectId)
follow somebody in background.
|
io.reactivex.Observable<JSONObject> |
followInBackground(String userObjectId,
Map<String,Object> attributes)
follow somebody in background.
|
LCQuery<LCObject> |
friendshipBlockQuery()
get block query.
|
static <T extends LCObject> |
friendshipBlockQuery(Class<T> clazz)
get block query.
|
LCQuery<LCFriendship> |
friendshipQuery(boolean isFollowerDirection)
get friendship query of current user.
|
LCQuery<LCFriendshipRequest> |
friendshipRequestQuery(int status,
boolean includeTargetUser,
boolean requestToMe)
get query for AVFriendshipRequest.
|
static LCUser |
getCurrentUser()
get current user, null if non-login.
|
static <T extends LCUser> |
getCurrentUser(Class<T> userClass)
get current user, null if non-login.
|
String |
getEmail()
get user email.
|
void |
getFollowersAndFolloweesInBackground(FollowersAndFolloweesCallback callback)
get follower and followee in background.
|
void |
getFollowersAndFolloweesInBackground(LCUser asAuthenticatedUser,
FollowersAndFolloweesCallback callback)
get follower and followee in background.
|
String |
getMobilePhoneNumber()
get user mobilephone.
|
String |
getPassword()
get user password.
|
static LCQuery<LCUser> |
getQuery()
Get User Query
|
io.reactivex.Observable<List<LCRole>> |
getRolesInBackground()
Get roles in background.
|
String |
getSessionToken()
get user session token.
|
String |
getUsername()
get user name.
|
static <T extends LCUser> |
getUserQuery(Class<T> clazz)
Get User Query
|
void |
internalChangeSessionToken(String token)
not use it!
|
boolean |
isAnonymous()
Whether is anonymous or not.
|
boolean |
isAuthenticated()
whether user is authenticated or not.
|
static boolean |
isEnableAutomatic() |
boolean |
isMobilePhoneVerified()
whether user's mobilephone is verified or not.
|
static io.reactivex.Observable<? extends LCUser> |
logIn(String username,
String password)
logIn in background
|
static <T extends LCUser> |
logIn(String username,
String password,
Class<T> clazz)
logIn in background
|
static io.reactivex.Observable<? extends LCUser> |
logInAnonymously()
login as anonymous user in background.
|
static io.reactivex.Observable<? extends LCUser> |
loginByEmail(String email,
String password)
logIn with email and password
|
static io.reactivex.Observable<? extends LCUser> |
loginByMobilePhoneNumber(String mobile,
String password)
logIn with mobile phone and password.
|
static <T extends LCUser> |
loginByMobilePhoneNumber(String mobile,
String password,
Class<T> clazz)
logIn with mobile phone and password.
|
static io.reactivex.Observable<? extends LCUser> |
loginBySMSCode(String mobile,
String smsCode)
logIn with mobile phone and sms code.
|
static <T extends LCUser> |
loginBySMSCode(String mobile,
String smsCode,
Class<T> clazz)
logIn with mobile phone and sms code.
|
static <T extends LCUser> |
loginWithAuthData(Class<T> clazz,
Map<String,Object> authData,
String platform)
login with auth data.
|
static <T extends LCUser> |
loginWithAuthData(Class<T> clazz,
Map<String,Object> authData,
String platform,
String unionId,
String unionIdPlatform,
boolean asMainAccount)
login with auth data.
|
static io.reactivex.Observable<? extends LCUser> |
loginWithAuthData(Map<String,Object> authData,
String platform)
login with auth data.
|
io.reactivex.Observable<LCUser> |
loginWithAuthData(Map<String,Object> authData,
String platform,
boolean failOnNotExist)
login with auth data.
|
static io.reactivex.Observable<? extends LCUser> |
loginWithAuthData(Map<String,Object> authData,
String platform,
String unionId,
String unionIdPlatform,
boolean asMainAccount)
login with auth data.
|
io.reactivex.Observable<LCUser> |
loginWithAuthData(Map<String,Object> authData,
String platform,
String unionId,
String unionIdPlatform,
boolean asMainAccount,
boolean failOnNotExist)
login with auth data.
|
static void |
logOut()
user logout.
|
protected void |
onDataSynchronized() |
protected void |
onSaveFailure() |
protected void |
onSaveSuccess() |
io.reactivex.Observable<List<LCFriendship>> |
queryFriendship()
query current user's friendship.
|
io.reactivex.Observable<List<LCFriendship>> |
queryFriendship(int offset,
int limit,
String orderBy)
query current user's friendship.
|
io.reactivex.Observable<Boolean> |
refreshSessionTokenInBackground()
refresh session token in background.
|
static io.reactivex.Observable<LCNull> |
requestEmailVerifyInBackground(String email)
request verified email
|
static io.reactivex.Observable<LCNull> |
requestLoginSmsCodeInBackground(String mobilePhone)
request sms code for login
|
static io.reactivex.Observable<LCNull> |
requestLoginSmsCodeInBackground(String mobilePhone,
String validateToken)
request sms code for login, collaborating with AVCaptcha
|
static io.reactivex.Observable<LCNull> |
requestMobilePhoneVerifyInBackground(String mobilePhone)
request sms code for verification mobile phone.
|
static io.reactivex.Observable<LCNull> |
requestMobilePhoneVerifyInBackground(String mobilePhone,
String validateToken)
request sms code for verification mobile phone, collaborating with AVCaptcha
|
static io.reactivex.Observable<LCNull> |
requestPasswordResetBySmsCodeInBackground(String phoneNumber)
request sms code for resetting password
|
static io.reactivex.Observable<LCNull> |
requestPasswordResetBySmsCodeInBackground(String phoneNumber,
String validateToken)
request sms code for resetting password, collaborating with AVCaptcha
|
static io.reactivex.Observable<LCNull> |
requestPasswordResetInBackground(String email)
Password-relative operations
|
static io.reactivex.Observable<LCNull> |
requestSMSCodeForUpdatingPhoneNumberInBackground(LCUser asAuthenticatedUser,
String mobilePhone,
LCSMSOption option)
request sms code for updating phone number of current user.
|
static io.reactivex.Observable<LCNull> |
requestSMSCodeForUpdatingPhoneNumberInBackground(String mobilePhone,
LCSMSOption option)
request sms code for updating phone number of current user.
|
static io.reactivex.Observable<LCNull> |
resetPasswordBySmsCodeInBackground(String smsCode,
String newPassword,
String phoneNumber)
reset password with sms code for current user.
|
static io.reactivex.Observable<JSONObject> |
retrieveShortTokenInBackground(String sessionToken)
获取用户的临时 JWT token,用于其他系统认证(例如 TDS 客服系统)
|
void |
setEmail(String email)
set user email
|
void |
setMobilePhoneNumber(String mobile)
set user mobilephone.
|
void |
setPassword(String password)
set user password.
|
void |
setUsername(String name)
set user name.
|
void |
signUp()
sign up(blocking).
|
io.reactivex.Observable<LCUser> |
signUpInBackground()
sign up in background.
|
static LCUser |
signUpOrLoginByMobilePhone(String mobilePhoneNumber,
String smsCode)
signUpOrLoginByMobilePhone
|
static <T extends LCUser> |
signUpOrLoginByMobilePhone(String mobilePhoneNumber,
String smsCode,
Class<T> clazz)
signUpOrLoginByMobilePhone
|
static io.reactivex.Observable<? extends LCUser> |
signUpOrLoginByMobilePhoneInBackground(String mobilePhoneNumber,
String smsCode)
signUpOrLoginByMobilePhoneInBackground
|
static <T extends LCUser> |
signUpOrLoginByMobilePhoneInBackground(String mobilePhoneNumber,
String smsCode,
Class<T> clazz)
signUpOrLoginByMobilePhoneInBackground
|
static io.reactivex.Observable<List<LCUser>> |
strictlyFind(QueryConditions queryConditions)
Get User list by query with conditions
|
io.reactivex.Observable<JSONObject> |
unblockFriendInBackground(String objectId)
unblock somebody in background.
|
io.reactivex.Observable<JSONObject> |
unfollowInBackground(LCUser asAuthenticatedUser,
String userObjectId)
unfollow somebody in background.
|
io.reactivex.Observable<JSONObject> |
unfollowInBackground(String userObjectId)
unfollow somebody in background.
|
io.reactivex.Observable<LCFriendship> |
updateFriendship(LCFriendship friendship)
update friendship attributes.
|
io.reactivex.Observable<LCFriendship> |
updateFriendship(LCUser asAuthenticatedUser,
LCFriendship friendship)
update friendship attributes.
|
io.reactivex.Observable<LCNull> |
updatePasswordInBackground(String oldPass,
String newPass)
update current user's password
|
static io.reactivex.Observable<LCNull> |
verifyMobilePhoneInBackground(String verifyCode,
String phoneNumber)
verify sms code with current user's phone number.
|
static io.reactivex.Observable<LCNull> |
verifySMSCodeForUpdatingPhoneNumberInBackground(LCUser asAuthenticatedUser,
String code,
String mobilePhone)
verify sms code for updating phone number of current user.
|
static io.reactivex.Observable<LCNull> |
verifySMSCodeForUpdatingPhoneNumberInBackground(String code,
String mobilePhone)
verify sms code for updating phone number of current user.
|
abortOperations, add, addAll, addAllUnique, addNewOperation, addUnique, bitAnd, bitOr, bitXor, cast, containsKey, createWithoutData, createWithoutData, decrement, decrement, delete, delete, deleteAll, deleteAll, deleteAllInBackground, deleteAllInBackground, deleteEventually, deleteEventually, deleteInBackground, deleteInBackground, disableAfterHook, disableBeforeHook, equals, extractCascadingObjects, extractUnsavedFiles, fetch, fetch, fetch, fetchIfNeeded, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchInBackground, fetchInBackground, fetchInBackground, generateACLFromServerData, generateCascadingSaveObjects, generateChangedParam, get, getACL, getBoolean, getBytes, getClassName, getCreatedAt, getCreatedAtString, getDate, getDouble, getInt, getJSONArray, getJSONObject, getLCFile, getLCGeoPoint, getLCObject, getList, getLong, getNumber, getObjectId, getQuery, getRelation, getRequestMethod, getRequestRawEndpoint, getServerData, getString, getUnsavedFiles, getUpdatedAt, getUpdatedAtString, getUuid, has, hasCircleReference, hashCode, ignoreHook, increment, increment, internalClassName, internalGet, internalId, internalPut, isDataAvailable, isFetchWhenSave, parseLCObject, put, refresh, refresh, refresh, refreshInBackground, refreshInBackground, refreshInBackground, refreshInBackground, registerSubclass, remove, removeAll, removeOperationForKey, resetAll, resetByRawData, resetServerData, save, save, saveAll, saveAll, saveAllInBackground, saveAllInBackground, saveEventually, saveEventually, saveInBackground, saveInBackground, saveInBackground, saveInBackground, setACL, setClassName, setFetchWhenSave, setObjectId, toJSONObject, toJSONString, toString, validFieldName, verifyInternalIdpublic static final String ATTR_USERNAME
public static final String ATTR_EMAIL
public static final String ATTR_MOBILEPHONE
public static final String ATTR_SESSION_TOKEN
public static final String CLASS_NAME
public static final String FOLLOWER_TAG
public static final String FOLLOWEE_TAG
public static LCUser currentUser()
public String getEmail()
public void setEmail(String email)
email - user email.public String getUsername()
public void setUsername(String name)
name - usernamepublic String getPassword()
public void setPassword(String password)
password - user password.public String getMobilePhoneNumber()
public void setMobilePhoneNumber(String mobile)
mobile - user mobilephone number.public boolean isMobilePhoneVerified()
public String getSessionToken()
public void internalChangeSessionToken(String token)
token - user token.public boolean isAuthenticated()
protected void onSaveSuccess()
onSaveSuccess in class LCObjectprotected void onSaveFailure()
onSaveFailure in class LCObjectprotected void onDataSynchronized()
onDataSynchronized in class LCObjectpublic boolean isAnonymous()
public void signUp()
public io.reactivex.Observable<LCUser> signUpInBackground()
public static LCUser signUpOrLoginByMobilePhone(String mobilePhoneNumber, String smsCode)
mobilePhoneNumber - mobile phonesmsCode - sms codepublic static <T extends LCUser> T signUpOrLoginByMobilePhone(String mobilePhoneNumber, String smsCode, Class<T> clazz)
T - template type.mobilePhoneNumber - mobile phone numbersmsCode - sms codeclazz - class namepublic static io.reactivex.Observable<? extends LCUser> signUpOrLoginByMobilePhoneInBackground(String mobilePhoneNumber, String smsCode)
mobilePhoneNumber - mobile phone number.smsCode - sms codepublic static <T extends LCUser> io.reactivex.Observable<T> signUpOrLoginByMobilePhoneInBackground(String mobilePhoneNumber, String smsCode, Class<T> clazz)
T - template type.mobilePhoneNumber - mobile phone numbersmsCode - sms codeclazz - class namepublic static io.reactivex.Observable<? extends LCUser> logIn(String username, String password)
username - usernamepassword - user passwordpublic static io.reactivex.Observable<? extends LCUser> logInAnonymously()
public static <T extends LCUser> io.reactivex.Observable<T> logIn(String username, String password, Class<T> clazz)
T - template type.username - usernamepassword - user passwordclazz - user class namepublic static io.reactivex.Observable<? extends LCUser> loginByMobilePhoneNumber(String mobile, String password)
mobile - mobile phonepassword - passwordpublic static io.reactivex.Observable<? extends LCUser> loginByEmail(String email, String password)
email - email.password - password.public static <T extends LCUser> io.reactivex.Observable<T> loginByMobilePhoneNumber(String mobile, String password, Class<T> clazz)
T - template type.mobile - mobile phone.password - user password.clazz - user class.public static io.reactivex.Observable<? extends LCUser> loginBySMSCode(String mobile, String smsCode)
mobile - mobile phone.smsCode - sms code.public static <T extends LCUser> io.reactivex.Observable<T> loginBySMSCode(String mobile, String smsCode, Class<T> clazz)
T - template type.mobile - mobile phone.smsCode - sms code.clazz - user class.public static io.reactivex.Observable<? extends LCUser> loginWithAuthData(Map<String,Object> authData, String platform)
authData - auth data.platform - platform string.public static io.reactivex.Observable<? extends LCUser> loginWithAuthData(Map<String,Object> authData, String platform, String unionId, String unionIdPlatform, boolean asMainAccount)
authData - auth data.platform - platform string.unionId - unionid.unionIdPlatform - unionid platform string.asMainAccount - flag to treat as main account.public static <T extends LCUser> io.reactivex.Observable<T> loginWithAuthData(Class<T> clazz, Map<String,Object> authData, String platform)
T - template type.authData - auth data.platform - platform string.clazz - user class name.public static <T extends LCUser> io.reactivex.Observable<T> loginWithAuthData(Class<T> clazz, Map<String,Object> authData, String platform, String unionId, String unionIdPlatform, boolean asMainAccount)
T - template type.authData - auth data.platform - platform string.unionId - unionid.unionIdPlatform - unionid platform string.asMainAccount - flag to treat as main account.clazz - user class name.public io.reactivex.Observable<LCUser> loginWithAuthData(Map<String,Object> authData, String platform, boolean failOnNotExist)
authData - auth data.platform - platform string.failOnNotExist - flag to indicate to exit if failed or not.public io.reactivex.Observable<LCUser> loginWithAuthData(Map<String,Object> authData, String platform, String unionId, String unionIdPlatform, boolean asMainAccount, boolean failOnNotExist)
authData - auth data.platform - platform string.unionId - union id.unionIdPlatform - the platform which union id is binding with.asMainAccount - flag indicating that whether current platform is main account or not.failOnNotExist - flag to indicate to exit if failed or not.public io.reactivex.Observable<LCUser> associateWithAuthData(Map<String,Object> authData, String platform)
authData - auth data.platform - platform name.public io.reactivex.Observable<LCUser> associateWithAuthData(Map<String,Object> authData, String platform, String unionId, String unionIdPlatform, boolean asMainAccount)
authData - auth data.platform - platform name.unionId - union id.unionIdPlatform - the platform which union id is binding with.asMainAccount - flag indicating that whether current platform is main account or not.public io.reactivex.Observable<LCUser> dissociateWithAuthData(String platform)
platform - platform name.public io.reactivex.Observable<Boolean> checkAuthenticatedInBackground()
public io.reactivex.Observable<Boolean> refreshSessionTokenInBackground()
public static io.reactivex.Observable<JSONObject> retrieveShortTokenInBackground(String sessionToken)
sessionToken - session tokenpublic static LCUser becomeWithSessionToken(String sessionToken)
sessionToken - session tokenpublic static LCUser becomeWithSessionToken(String sessionToken, boolean saveToCurrentUser)
sessionToken - session tokensaveToCurrentUser - flag indicating whether change current user or not.
true - save user to AVUser#currentUser.
false - not save.public static io.reactivex.Observable<? extends LCUser> becomeWithSessionTokenInBackground(String sessionToken)
sessionToken - session tokenpublic static io.reactivex.Observable<? extends LCUser> becomeWithSessionTokenInBackground(String sessionToken, boolean saveToCurrentUser)
sessionToken - session tokensaveToCurrentUser - flag indicating whether change current user or not.
true - save user to AVUser#currentUser.
false - not save.public static <T extends LCUser> T becomeWithSessionToken(String sessionToken, Class<T> clazz)
T - template.sessionToken - session tokenclazz - class name.public static <T extends LCUser> T becomeWithSessionToken(String sessionToken, boolean saveToCurrentUser, Class<T> clazz)
T - template.sessionToken - session tokensaveToCurrentUser - flag indicating whether change current user or not.
true - save user to AVUser#currentUser.
false - not save.clazz - class name.public static <T extends LCUser> io.reactivex.Observable<T> becomeWithSessionTokenInBackground(String sessionToken, Class<T> clazz)
T - generic type.sessionToken - session tokenclazz - class namepublic static <T extends LCUser> io.reactivex.Observable<T> becomeWithSessionTokenInBackground(String sessionToken, boolean saveToCurrentUser, Class<T> clazz)
T - generic typesessionToken - session tokensaveToCurrentUser - flag indicating whether change current user or not.
true - save user to AVUser#currentUser.
false - not save.clazz - class namepublic static LCUser createWithSessionToken(String objectId, String sessionToken) throws LCException
LCExceptionpublic static <T extends LCUser> T createWithSessionToken(Class<T> clazz, String objectId, String sessionToken) throws LCException
LCExceptionpublic static void logOut()
public static <T extends LCUser> LCQuery<T> getUserQuery(Class<T> clazz)
T - template type.clazz - class name.public static io.reactivex.Observable<List<LCUser>> strictlyFind(QueryConditions queryConditions)
queryConditions - query conditions.public io.reactivex.Observable<List<LCRole>> getRolesInBackground()
public static void enableAutomaticUser()
public static boolean isEnableAutomatic()
public static void disableAutomaticUser()
public static void changeCurrentUser(LCUser newUser, boolean save)
newUser - new instance.save - flag indicating that whether save current user to cache or not.public static LCUser getCurrentUser()
public static <T extends LCUser> T getCurrentUser(Class<T> userClass)
T - template type.userClass - user object class.public static io.reactivex.Observable<LCNull> requestPasswordResetInBackground(String email)
email - user email.public static io.reactivex.Observable<LCNull> requestPasswordResetBySmsCodeInBackground(String phoneNumber)
phoneNumber - mobile phone numberpublic static io.reactivex.Observable<LCNull> requestPasswordResetBySmsCodeInBackground(String phoneNumber, String validateToken)
phoneNumber - mobile phone numbervalidateToken - validated token, retrieved after invoking AVCaptcha#verifyCaptchaCodeInBackgroundpublic static io.reactivex.Observable<LCNull> resetPasswordBySmsCodeInBackground(String smsCode, String newPassword, String phoneNumber)
smsCode - sms codenewPassword - new passwordpublic io.reactivex.Observable<LCNull> updatePasswordInBackground(String oldPass, String newPass)
oldPass - old passwordnewPass - new passwordpublic static io.reactivex.Observable<LCNull> requestEmailVerifyInBackground(String email)
email - email addresspublic static io.reactivex.Observable<LCNull> requestMobilePhoneVerifyInBackground(String mobilePhone)
mobilePhone - mobile phone number.public static io.reactivex.Observable<LCNull> requestMobilePhoneVerifyInBackground(String mobilePhone, String validateToken)
mobilePhone - mobile phone number.validateToken - validated token, retrieved after invoking AVCaptcha#verifyCaptchaCodeInBackgroundpublic static io.reactivex.Observable<LCNull> requestLoginSmsCodeInBackground(String mobilePhone)
mobilePhone - mobile phone number.public static io.reactivex.Observable<LCNull> requestLoginSmsCodeInBackground(String mobilePhone, String validateToken)
mobilePhone - mobile phone numbervalidateToken - validated token, retrieved after invoking AVCaptcha#verifyCaptchaCodeInBackgroundpublic static io.reactivex.Observable<LCNull> verifyMobilePhoneInBackground(String verifyCode, String phoneNumber)
verifyCode - sms codepublic static io.reactivex.Observable<LCNull> requestSMSCodeForUpdatingPhoneNumberInBackground(String mobilePhone, LCSMSOption option)
mobilePhone - mobile phone number.option - sms optionpublic static io.reactivex.Observable<LCNull> requestSMSCodeForUpdatingPhoneNumberInBackground(LCUser asAuthenticatedUser, String mobilePhone, LCSMSOption option)
asAuthenticatedUser - explicit user for request authentication.mobilePhone - mobile phone number.option - sms optionpublic static io.reactivex.Observable<LCNull> verifySMSCodeForUpdatingPhoneNumberInBackground(String code, String mobilePhone)
code - sms codemobilePhone - mobile phone number.public static io.reactivex.Observable<LCNull> verifySMSCodeForUpdatingPhoneNumberInBackground(LCUser asAuthenticatedUser, String code, String mobilePhone)
asAuthenticatedUser - explicit user for request authentication.code - sms codemobilePhone - mobile phone number.public io.reactivex.Observable<JSONObject> followInBackground(String userObjectId)
userObjectId - target user objectId.public io.reactivex.Observable<JSONObject> followInBackground(LCUser asAuthenticatedUser, String userObjectId)
asAuthenticatedUser - explicit user for request authentication.userObjectId - target user objectId.public io.reactivex.Observable<JSONObject> followInBackground(String userObjectId, Map<String,Object> attributes)
userObjectId - target user objectId.attributes - friendship attributes.public io.reactivex.Observable<JSONObject> followInBackground(LCUser asAuthenticatedUser, String userObjectId, Map<String,Object> attributes)
asAuthenticatedUser - explicit user for request authentication.userObjectId - target user objectId.attributes - friendship attributes.public io.reactivex.Observable<JSONObject> unfollowInBackground(String userObjectId)
userObjectId - target user objectId.public io.reactivex.Observable<JSONObject> unfollowInBackground(LCUser asAuthenticatedUser, String userObjectId)
asAuthenticatedUser - explicit user for request authentication.userObjectId - target user objectId.public static <T extends LCObject> LCQuery<T> followerQuery(String userObjectId, Class<T> clazz)
T - template type.userObjectId - user object id.clazz - result class.public static <T extends LCObject> LCQuery<T> followeeQuery(String userObjectId, Class<T> clazz)
T - template type.userObjectId - user object id.clazz - result class.public LCQuery<LCFriendship> friendshipQuery(boolean isFollowerDirection)
isFollowerDirection - query direction:
true - query follower of current user(users which followed current user).
false - query followee of current user(users which current user followed).public io.reactivex.Observable<List<LCFriendship>> queryFriendship()
public io.reactivex.Observable<List<LCFriendship>> queryFriendship(int offset, int limit, String orderBy)
offset - result offset.limit - result size limit.orderBy - order attribute.public io.reactivex.Observable<LCFriendshipRequest> applyFriendshipInBackground(LCUser friend, Map<String,Object> attributes)
friend - target user.attributes - additional attributes.public io.reactivex.Observable<LCFriendshipRequest> applyFriendshipInBackground(LCUser asAuthenticatedUser, LCUser friend, Map<String,Object> attributes)
asAuthenticatedUser - explicit user for request authentication.friend - target user.attributes - additional attributes.public io.reactivex.Observable<LCFriendship> updateFriendship(LCFriendship friendship)
friendship - friendship instance.public io.reactivex.Observable<LCFriendship> updateFriendship(LCUser asAuthenticatedUser, LCFriendship friendship)
asAuthenticatedUser - explicit user for request authentication.friendship - friendship instance.public io.reactivex.Observable<JSONObject> blockFriendInBackground(String objectId)
objectId - target user objectId.public io.reactivex.Observable<JSONObject> unblockFriendInBackground(String objectId)
objectId - target user objectId.public LCQuery<LCObject> friendshipBlockQuery()
public static <T extends LCObject> LCQuery<T> friendshipBlockQuery(Class<T> clazz)
T - template type.clazz - result class.public io.reactivex.Observable<LCFriendshipRequest> acceptFriendshipRequest(LCFriendshipRequest request, Map<String,Object> attributes)
request - friendship request.attributes - additional attributes.public io.reactivex.Observable<LCFriendshipRequest> acceptFriendshipRequest(LCUser asAuthenticatedUser, LCFriendshipRequest request, Map<String,Object> attributes)
asAuthenticatedUser - explicit user for request authentication.request - friendship request.attributes - additional attributes.public io.reactivex.Observable<LCFriendshipRequest> declineFriendshipRequest(LCFriendshipRequest request)
request - friendship request.public io.reactivex.Observable<LCFriendshipRequest> declineFriendshipRequest(LCUser asAuthenticatedUser, LCFriendshipRequest request)
asAuthenticatedUser - explicit user for request authentication.request - friendship request.public LCQuery<LCFriendshipRequest> friendshipRequestQuery(int status, boolean includeTargetUser, boolean requestToMe)
status - request status. following value can be used individually or combined with `and` operator:
AVFriendshipRequest.STATUS_PENDING(0x01) - request is pending yet.
AVFriendshipRequest.STATUS_ACCEPTED(0x02) - request is accepted by user.
AVFriendshipRequest.STATUS_DECLINED(0x04) - request is declined by user.
AVFriendshipRequest.STATUS_ANY(0x07) - no matter status, all of requests are wanted by current query.includeTargetUser - boolean flag, indicating that need to include target user pointer or not.requestToMe - boolean flag, indicating all requests are sent to current user or not.
true - someone others sent requests to current user.
false - current user sent requests to others.public void getFollowersAndFolloweesInBackground(FollowersAndFolloweesCallback callback)
callback - callback handler.
request authentication with current user.public void getFollowersAndFolloweesInBackground(LCUser asAuthenticatedUser, FollowersAndFolloweesCallback callback)
asAuthenticatedUser - explicit user for request authentication.callback - callback handler.
in general, this method should be invoked in lean engine.public static void alwaysUseSubUserClass(Class<? extends LCUser> clazz)
clazz - class nameCopyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.