public class StorageClient extends Object
Constructor and Description |
---|
StorageClient(cn.leancloud.service.APIService apiService,
boolean asyncRequest,
AppConfiguration.SchedulerCreator observerSchedulerCreator) |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<LCFriendshipRequest> |
acceptFriendshipRequest(LCUser authenticatedUser,
LCFriendshipRequest request,
JSONObject param) |
io.reactivex.Observable<LCFriendshipRequest> |
applyFriendshipRequest(LCUser authenticatedUser,
JSONObject data) |
io.reactivex.Observable<List<Map<String,Object>>> |
batchSave(LCUser authenticatedUser,
JSONObject parameter) |
io.reactivex.Observable<JSONObject> |
batchUpdate(LCUser authenticatedUser,
JSONObject parameter) |
io.reactivex.Observable<JSONObject> |
blockFriend(LCUser authenticatedUser,
String objectId) |
<T> io.reactivex.Observable<T> |
callFunction(LCUser authenticatedUser,
String name,
Map<String,Object> params) |
<T> io.reactivex.Observable<T> |
callFunctionWithCachePolicy(LCUser asAuthenticatedUser,
String name,
Map<String,Object> params,
LCQuery.CachePolicy cachePolicy,
long maxCacheAge,
Class<T> clazz) |
<T> io.reactivex.Observable<T> |
callRPC(LCUser authenticatedUser,
String name,
Object param) |
<T> io.reactivex.Observable<T> |
callRPCWithCachePolicy(LCUser asAuthenticatedUser,
String name,
Map<String,Object> param,
LCQuery.CachePolicy cachePolicy,
long maxCacheAge,
Class<T> clazz) |
io.reactivex.Observable<Boolean> |
checkAuthenticated(String sessionToken) |
io.reactivex.Observable<LCQueryResult> |
cloudQuery(LCUser authenticatedUser,
Map<String,String> query) |
io.reactivex.Observable<LCObject> |
createLeaderboard(Map<String,Object> params)
create leaderboard.
|
io.reactivex.Observable<? extends LCObject> |
createObject(LCUser authenticatedUser,
String className,
JSONObject data,
boolean fetchFlag,
JSONObject where) |
<T extends LCUser> |
createUserBySession(String sessionToken,
Class<T> clazz) |
io.reactivex.Observable<LCFriendshipRequest> |
declineFriendshipRequest(LCUser authenticatedUser,
LCFriendshipRequest request) |
io.reactivex.Observable<LCNull> |
deleteInboxStatus(LCUser authenticatedUser,
Map<String,Object> param) |
io.reactivex.Observable<LCNull> |
deleteObject(LCUser authenticatedUser,
String className,
String objectId,
Map<String,Object> param) |
io.reactivex.Observable<LCNull> |
deleteStatus(LCUser authenticatedUser,
String statusId) |
io.reactivex.Observable<LCNull> |
deleteWholeObject(LCUser authenticatedUser,
String endpointClass,
String objectId,
Map<String,Object> param) |
io.reactivex.Observable<Boolean> |
destroyLeaderboard(String name)
destroy leaderboard
|
io.reactivex.Observable<LCFile> |
fetchFile(LCUser authenticatedUser,
String objectId) |
io.reactivex.Observable<LCObject> |
fetchLeaderboard(String name)
fetch leaderboard with name.
|
io.reactivex.Observable<? extends LCObject> |
fetchObject(LCUser authenticatedUser,
String className,
String objectId,
String includeKeys) |
io.reactivex.Observable<LCStatus> |
fetchStatus(LCUser authenticatedUser,
String objectId) |
void |
fileCallback(LCUser authenticatedUser,
JSONObject result) |
io.reactivex.Observable<JSONObject> |
followUser(LCUser authenticatedUser,
String followee,
String follower,
Map<String,Object> attr) |
LCUser |
getCurrentUser() |
io.reactivex.Observable<LCStatisticResult> |
getEntityStatistics(String entityId,
List<String> statisticNames) |
io.reactivex.Observable<JSONObject> |
getFollowersAndFollowees(LCUser authenticatedUser,
String userId) |
io.reactivex.Observable<LCStatisticResult> |
getGroupStatistics(String leaderboardType,
String statisticName,
List<String> targetKeys) |
io.reactivex.Observable<JSONObject> |
getInboxCount(LCUser authenticatedUser,
Map<String,String> param) |
io.reactivex.Observable<LCLeaderboardResult> |
getLeaderboardAroundInGroupResults(String leaderboardType,
String statisticName,
List<String> groupUserIds,
String targetId,
int limit,
List<String> selectUserKeys,
List<String> includeUserKeys,
List<String> includeStatisticNames,
int version) |
io.reactivex.Observable<LCLeaderboardResult> |
getLeaderboardAroundResults(String leaderboardType,
String statisticName,
String targetId,
int skip,
int limit,
List<String> selectUserKeys,
List<String> includeUserKeys,
List<String> includeStatisticNames,
int version) |
io.reactivex.Observable<LCLeaderboardResult> |
getLeaderboardGroupResults(String leaderboardType,
String statisticName,
List<String> groupUserIds,
int skip,
int limit,
List<String> selectUserKeys,
List<String> includeUserKeys,
List<String> includeStatisticNames,
int version) |
io.reactivex.Observable<LCLeaderboardResult> |
getLeaderboardResults(String leaderboardType,
String statisticName,
int skip,
int limit,
List<String> selectUserKeys,
List<String> includeUserKeys,
List<String> includeStatisticNames,
int version,
boolean withCount) |
io.reactivex.Observable<LCStatisticResult> |
getObjectStatistics(String objectId,
List<String> statisticNames) |
io.reactivex.Observable<LCDate> |
getServerTime() |
io.reactivex.Observable<LCStatisticResult> |
getUserStatistics(String userObjectId,
List<String> statisticNames) |
io.reactivex.Observable<LCObject> |
getWholeObject(LCUser authenticatedUser,
String endpointClass,
String objectId,
String includeKeys) |
boolean |
hasCachedResult(String className,
Map<String,String> query,
long maxAgeInMilliseconds) |
<T extends LCUser> |
logIn(JSONObject data,
Class<T> clazz) |
io.reactivex.Observable<cn.leancloud.upload.FileUploadToken> |
newUploadToken(LCUser authenticatedUser,
JSONObject fileData) |
io.reactivex.Observable<LCStatus> |
postStatus(LCUser authenticatedUser,
Map<String,Object> param) |
io.reactivex.Observable<Integer> |
queryCount(LCUser authenticatedUser,
String className,
Map<String,String> query) |
io.reactivex.Observable<List<LCFriendship>> |
queryFriendship(LCUser authenticatedUser,
Map<String,String> conditions) |
io.reactivex.Observable<List<LCStatus>> |
queryInbox(LCUser authenticatedUser,
Map<String,String> param) |
io.reactivex.Observable<List<LCObject>> |
queryObjects(LCUser authenticatedUser,
String className,
String endPoint,
Map<String,String> query,
LCQuery.CachePolicy cachePolicy,
long maxAgeInMilliseconds) |
io.reactivex.Observable<List<LCStatus>> |
queryStatus(LCUser authenticatedUser,
Map<String,String> param) |
io.reactivex.Observable<Boolean> |
refreshSessionToken(LCUser user) |
io.reactivex.Observable<LCCaptchaDigest> |
requestCaptcha(LCCaptchaOption option) |
io.reactivex.Observable<LCNull> |
requestEmailVerify(String email) |
io.reactivex.Observable<LCNull> |
requestLoginSmsCode(String phoneNumber,
String validateToken) |
io.reactivex.Observable<LCNull> |
requestMobilePhoneVerify(String mobilePhone,
String validateToken) |
io.reactivex.Observable<LCNull> |
requestResetPassword(String email) |
io.reactivex.Observable<LCNull> |
requestResetPasswordBySmsCode(String phoneNumber,
String validateToken) |
io.reactivex.Observable<LCNull> |
requestSMSCode(String mobilePhone,
Map<String,Object> param) |
io.reactivex.Observable<LCNull> |
requestSMSCodeForUpdatingPhoneNumber(LCUser asUser,
String mobilePhone,
Map<String,Object> param) |
io.reactivex.Observable<LCObject> |
resetLeaderboard(String name)
reset leaderboard
|
io.reactivex.Observable<LCNull> |
resetPasswordBySmsCode(String smsCode,
String newPass,
String phoneNumber) |
io.reactivex.Observable<JSONObject> |
retrieveShortToken(String sessionToken) |
io.reactivex.Observable<? extends LCObject> |
saveObject(LCUser authenticatedUser,
String className,
String objectId,
JSONObject data,
boolean fetchFlag,
JSONObject where) |
<E extends LCObject> |
saveWholeObject(LCUser authenticatedUser,
Class<E> clazz,
String endpointClass,
String objectId,
JSONObject object,
boolean fetchFlag,
JSONObject where) |
io.reactivex.Observable<LCSearchResponse> |
search(LCUser authenticatedUser,
Map<String,String> params) |
void |
setCurrentUser(LCUser newUser) |
io.reactivex.Observable<LCUser> |
signUp(JSONObject data) |
<T extends LCUser> |
signUpOrLoginByMobilephone(JSONObject data,
Class<T> clazz) |
io.reactivex.Observable<LCUser> |
signUpWithFlag(JSONObject data,
boolean failOnNotExist) |
io.reactivex.Observable<List<LCUser>> |
strictlyQueryUsers(LCUser authenticatedUser,
Map<String,String> query) |
io.reactivex.Observable<JSONObject> |
unblockFriend(LCUser authenticatedUser,
String objectId) |
io.reactivex.Observable<JSONObject> |
unfollowUser(LCUser authenticatedUser,
String followee,
String follower) |
io.reactivex.Observable<LCStatisticResult> |
updateEntityStatistics(String entityId,
List<Map<String,Object>> params,
boolean overwrite) |
io.reactivex.Observable<LCFriendship> |
updateFriendship(LCUser authenticatedUser,
String followeeUserid,
String friendObjectId,
Map<String,Object> attr) |
io.reactivex.Observable<LCObject> |
updateLeaderboard(String name,
Map<String,Object> params)
update leaderboard with attributes.
|
io.reactivex.Observable<LCStatisticResult> |
updateObjectStatistics(String objectId,
List<Map<String,Object>> params,
boolean overwrite) |
io.reactivex.Observable<LCNull> |
updatePassword(LCUser user,
String oldPass,
String newPass) |
io.reactivex.Observable<LCStatisticResult> |
updateUserStatistics(LCUser user,
List<Map<String,Object>> params,
boolean overwrite)
update user statistics.
|
io.reactivex.Observable<LCCaptchaValidateResult> |
verifyCaptcha(String code,
String token) |
io.reactivex.Observable<LCNull> |
verifyMobilePhone(String verifyCode,
String phoneNumber) |
io.reactivex.Observable<LCNull> |
verifySMSCode(String code,
String mobilePhone) |
io.reactivex.Observable<LCNull> |
verifySMSCodeForUpdatingPhoneNumber(LCUser asUser,
String code,
String mobilePhone) |
io.reactivex.Observable |
wrapObservable(io.reactivex.Observable observable) |
io.reactivex.Observable |
wrapObservableNoResume(io.reactivex.Observable observable) |
public StorageClient(cn.leancloud.service.APIService apiService, boolean asyncRequest, AppConfiguration.SchedulerCreator observerSchedulerCreator)
public void setCurrentUser(LCUser newUser)
public LCUser getCurrentUser()
public io.reactivex.Observable wrapObservable(io.reactivex.Observable observable)
public io.reactivex.Observable wrapObservableNoResume(io.reactivex.Observable observable)
public io.reactivex.Observable<LCDate> getServerTime()
public io.reactivex.Observable<? extends LCObject> fetchObject(LCUser authenticatedUser, String className, String objectId, String includeKeys)
public boolean hasCachedResult(String className, Map<String,String> query, long maxAgeInMilliseconds)
public io.reactivex.Observable<List<LCUser>> strictlyQueryUsers(LCUser authenticatedUser, Map<String,String> query)
public io.reactivex.Observable<List<LCObject>> queryObjects(LCUser authenticatedUser, String className, String endPoint, Map<String,String> query, LCQuery.CachePolicy cachePolicy, long maxAgeInMilliseconds)
public io.reactivex.Observable<LCQueryResult> cloudQuery(LCUser authenticatedUser, Map<String,String> query)
public io.reactivex.Observable<Integer> queryCount(LCUser authenticatedUser, String className, Map<String,String> query)
public io.reactivex.Observable<LCNull> deleteObject(LCUser authenticatedUser, String className, String objectId, Map<String,Object> param)
public io.reactivex.Observable<? extends LCObject> createObject(LCUser authenticatedUser, String className, JSONObject data, boolean fetchFlag, JSONObject where)
public io.reactivex.Observable<? extends LCObject> saveObject(LCUser authenticatedUser, String className, String objectId, JSONObject data, boolean fetchFlag, JSONObject where)
public <E extends LCObject> io.reactivex.Observable<E> saveWholeObject(LCUser authenticatedUser, Class<E> clazz, String endpointClass, String objectId, JSONObject object, boolean fetchFlag, JSONObject where)
public io.reactivex.Observable<LCObject> getWholeObject(LCUser authenticatedUser, String endpointClass, String objectId, String includeKeys)
public io.reactivex.Observable<LCNull> deleteWholeObject(LCUser authenticatedUser, String endpointClass, String objectId, Map<String,Object> param)
public io.reactivex.Observable<LCFile> fetchFile(LCUser authenticatedUser, String objectId)
public io.reactivex.Observable<cn.leancloud.upload.FileUploadToken> newUploadToken(LCUser authenticatedUser, JSONObject fileData)
public void fileCallback(LCUser authenticatedUser, JSONObject result) throws IOException
IOException
public io.reactivex.Observable<List<Map<String,Object>>> batchSave(LCUser authenticatedUser, JSONObject parameter)
public io.reactivex.Observable<JSONObject> batchUpdate(LCUser authenticatedUser, JSONObject parameter)
public io.reactivex.Observable<LCUser> signUp(JSONObject data)
public io.reactivex.Observable<LCUser> signUpWithFlag(JSONObject data, boolean failOnNotExist)
public <T extends LCUser> io.reactivex.Observable<T> signUpOrLoginByMobilephone(JSONObject data, Class<T> clazz)
public <T extends LCUser> io.reactivex.Observable<T> logIn(JSONObject data, Class<T> clazz)
public io.reactivex.Observable<LCFriendshipRequest> applyFriendshipRequest(LCUser authenticatedUser, JSONObject data)
public io.reactivex.Observable<LCFriendshipRequest> acceptFriendshipRequest(LCUser authenticatedUser, LCFriendshipRequest request, JSONObject param)
public io.reactivex.Observable<LCFriendshipRequest> declineFriendshipRequest(LCUser authenticatedUser, LCFriendshipRequest request)
public <T extends LCUser> io.reactivex.Observable<T> createUserBySession(String sessionToken, Class<T> clazz)
public io.reactivex.Observable<JSONObject> retrieveShortToken(String sessionToken)
public io.reactivex.Observable<LCNull> requestResetPasswordBySmsCode(String phoneNumber, String validateToken)
public io.reactivex.Observable<LCNull> requestMobilePhoneVerify(String mobilePhone, String validateToken)
public io.reactivex.Observable<LCNull> verifyMobilePhone(String verifyCode, String phoneNumber)
public io.reactivex.Observable<LCNull> requestLoginSmsCode(String phoneNumber, String validateToken)
public io.reactivex.Observable<LCNull> resetPasswordBySmsCode(String smsCode, String newPass, String phoneNumber)
public io.reactivex.Observable<LCNull> updatePassword(LCUser user, String oldPass, String newPass)
public io.reactivex.Observable<JSONObject> followUser(LCUser authenticatedUser, String followee, String follower, Map<String,Object> attr)
public io.reactivex.Observable<JSONObject> unfollowUser(LCUser authenticatedUser, String followee, String follower)
public io.reactivex.Observable<LCFriendship> updateFriendship(LCUser authenticatedUser, String followeeUserid, String friendObjectId, Map<String,Object> attr)
public io.reactivex.Observable<JSONObject> getFollowersAndFollowees(LCUser authenticatedUser, String userId)
public io.reactivex.Observable<List<LCFriendship>> queryFriendship(LCUser authenticatedUser, Map<String,String> conditions)
public io.reactivex.Observable<JSONObject> blockFriend(LCUser authenticatedUser, String objectId)
public io.reactivex.Observable<JSONObject> unblockFriend(LCUser authenticatedUser, String objectId)
public io.reactivex.Observable<LCStatus> postStatus(LCUser authenticatedUser, Map<String,Object> param)
public io.reactivex.Observable<LCStatus> fetchStatus(LCUser authenticatedUser, String objectId)
public io.reactivex.Observable<List<LCStatus>> queryStatus(LCUser authenticatedUser, Map<String,String> param)
public io.reactivex.Observable<List<LCStatus>> queryInbox(LCUser authenticatedUser, Map<String,String> param)
public io.reactivex.Observable<JSONObject> getInboxCount(LCUser authenticatedUser, Map<String,String> param)
public io.reactivex.Observable<LCNull> deleteStatus(LCUser authenticatedUser, String statusId)
public io.reactivex.Observable<LCNull> deleteInboxStatus(LCUser authenticatedUser, Map<String,Object> param)
public <T> io.reactivex.Observable<T> callRPC(LCUser authenticatedUser, String name, Object param)
public <T> io.reactivex.Observable<T> callFunction(LCUser authenticatedUser, String name, Map<String,Object> params)
public <T> io.reactivex.Observable<T> callRPCWithCachePolicy(LCUser asAuthenticatedUser, String name, Map<String,Object> param, LCQuery.CachePolicy cachePolicy, long maxCacheAge, Class<T> clazz)
public <T> io.reactivex.Observable<T> callFunctionWithCachePolicy(LCUser asAuthenticatedUser, String name, Map<String,Object> params, LCQuery.CachePolicy cachePolicy, long maxCacheAge, Class<T> clazz)
public io.reactivex.Observable<LCCaptchaDigest> requestCaptcha(LCCaptchaOption option)
public io.reactivex.Observable<LCCaptchaValidateResult> verifyCaptcha(String code, String token)
public io.reactivex.Observable<LCNull> requestSMSCode(String mobilePhone, Map<String,Object> param)
public io.reactivex.Observable<LCNull> requestSMSCodeForUpdatingPhoneNumber(LCUser asUser, String mobilePhone, Map<String,Object> param)
public io.reactivex.Observable<LCNull> verifySMSCodeForUpdatingPhoneNumber(LCUser asUser, String code, String mobilePhone)
public io.reactivex.Observable<LCSearchResponse> search(LCUser authenticatedUser, Map<String,String> params)
public io.reactivex.Observable<LCObject> createLeaderboard(Map<String,Object> params)
params
- parameters.public io.reactivex.Observable<LCObject> fetchLeaderboard(String name)
name
- leaderboard namepublic io.reactivex.Observable<LCObject> updateLeaderboard(String name, Map<String,Object> params)
name
- leaderboard nameparams
- attributes.public io.reactivex.Observable<LCObject> resetLeaderboard(String name)
name
- leaderboard namepublic io.reactivex.Observable<Boolean> destroyLeaderboard(String name)
name
- leaderboard namepublic io.reactivex.Observable<LCStatisticResult> updateUserStatistics(LCUser user, List<Map<String,Object>> params, boolean overwrite)
user
- user objectparams
- attributes.overwrite
- overwrite flag.public io.reactivex.Observable<LCStatisticResult> updateObjectStatistics(String objectId, List<Map<String,Object>> params, boolean overwrite)
public io.reactivex.Observable<LCStatisticResult> updateEntityStatistics(String entityId, List<Map<String,Object>> params, boolean overwrite)
public io.reactivex.Observable<LCStatisticResult> getUserStatistics(String userObjectId, List<String> statisticNames)
public io.reactivex.Observable<LCStatisticResult> getEntityStatistics(String entityId, List<String> statisticNames)
public io.reactivex.Observable<LCStatisticResult> getObjectStatistics(String objectId, List<String> statisticNames)
public io.reactivex.Observable<LCStatisticResult> getGroupStatistics(String leaderboardType, String statisticName, List<String> targetKeys)
public io.reactivex.Observable<LCLeaderboardResult> getLeaderboardResults(String leaderboardType, String statisticName, int skip, int limit, List<String> selectUserKeys, List<String> includeUserKeys, List<String> includeStatisticNames, int version, boolean withCount)
public io.reactivex.Observable<LCLeaderboardResult> getLeaderboardGroupResults(String leaderboardType, String statisticName, List<String> groupUserIds, int skip, int limit, List<String> selectUserKeys, List<String> includeUserKeys, List<String> includeStatisticNames, int version)
public io.reactivex.Observable<LCLeaderboardResult> getLeaderboardAroundResults(String leaderboardType, String statisticName, String targetId, int skip, int limit, List<String> selectUserKeys, List<String> includeUserKeys, List<String> includeStatisticNames, int version)
public io.reactivex.Observable<LCLeaderboardResult> getLeaderboardAroundInGroupResults(String leaderboardType, String statisticName, List<String> groupUserIds, String targetId, int limit, List<String> selectUserKeys, List<String> includeUserKeys, List<String> includeStatisticNames, int version)
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.