Package cn.leancloud
Class LCStatusQuery
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from class cn.leancloud.LCQuery
LCQuery.CachePolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble query parameters.io.reactivex.Observable<Integer> get status count.findInBackground(int explicitLimit) findInBackground(LCUser asAuthenticatedUser, int explicitLimit) longgetMaxId()get current max messageId.intget pagination size.longget current since messageId.get next pagination result.voidset query direction.voidsetMaxId(long maxId) set max messageId.voidsetPageSize(int pageSize) set pagination size.voidsetSinceId(long sinceId) set since messageId.io.reactivex.Observable<JSONObject> get (read, unread) count.Methods inherited from class cn.leancloud.LCQuery
addAscendingOrder, addDescendingOrder, addWhereItem, and, assembleJsonParam, clearAllCachedResults, clearCachedResult, clone, count, count, countInBackground, deleteAll, deleteAll, deleteAllInBackground, deleteAllInBackground, find, findInBackground, findInBackground, get, getCachePolicy, getClassName, getFirst, getFirst, getFirstInBackground, getFirstInBackground, getInBackground, getInBackground, getLimit, getMaxCacheAge, getOrder, getPolicy, getQuery, getQuery, getSkip, hasCachedResult, include, includeACL, isIncludeACL, limit, or, order, orderByAscending, orderByDescending, selectKeys, setCachePolicy, setClassName, setLimit, setMaxCacheAge, setOrder, setPolicy, setSkip, skip, whereContainedIn, whereContains, whereContainsAll, whereDoesNotExist, whereDoesNotMatchKeyInQuery, whereDoesNotMatchQuery, whereEndsWith, whereEqualTo, whereExists, whereGreaterThan, whereGreaterThanOrEqualTo, whereLessThan, whereLessThanOrEqualTo, whereMatches, whereMatches, whereMatchesKeyInQuery, whereMatchesQuery, whereNear, whereNotContainedIn, whereNotEqualTo, whereSizeEqual, whereStartsWith, whereWithinGeoBox, whereWithinKilometers, whereWithinKilometers, whereWithinMiles, whereWithinMiles, whereWithinRadians, whereWithinRadians
-
Constructor Details
-
LCStatusQuery
-
-
Method Details
-
setSinceId
public void setSinceId(long sinceId) set since messageId.- Parameters:
sinceId- starter message id
-
getSinceId
public long getSinceId()get current since messageId.- Returns:
- since messageId
-
getMaxId
public long getMaxId()get current max messageId.- Returns:
- max messageId
-
setMaxId
public void setMaxId(long maxId) set max messageId.- Parameters:
maxId- max messageId
-
getPageSize
public int getPageSize()get pagination size.- Returns:
- pagination size.
-
setPageSize
public void setPageSize(int pageSize) set pagination size.- Parameters:
pageSize- pagination size
-
setDirection
set query direction.- Parameters:
direct- pagination direction.
-
assembleParameters
assemble query parameters.- Overrides:
assembleParametersin classLCQuery<LCStatus>- Returns:
- parameter map.
-
findInBackground
-
findInBackground
protected io.reactivex.Observable<List<LCStatus>> findInBackground(LCUser asAuthenticatedUser, int explicitLimit) - Overrides:
findInBackgroundin classLCQuery<LCStatus>
-
nextInBackground
get next pagination result.- Returns:
- observable instance.
-
countInBackground
get status count.- Overrides:
countInBackgroundin classLCQuery<LCStatus>- Returns:
- observable instance.
-
unreadCountInBackground
get (read, unread) count.- Returns:
- observable instance.
-