public class LCStatus extends LCObject
Modifier and Type | Class and Description |
---|---|
static class |
LCStatus.INBOX_TYPE |
LCObject.Hook
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_IMAGE |
static String |
ATTR_INBOX_TYPE |
static String |
ATTR_MESSAGE |
static String |
ATTR_MESSAGE_ID |
static String |
ATTR_OWNER |
static String |
ATTR_SOURCE |
static String |
CLASS_NAME |
static int |
INVALID_MESSAGE_ID |
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 |
---|
LCStatus()
default constructor.
|
LCStatus(LCObject o)
constructor from AVObject instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
Object value)
Deprecated.
|
void |
addAll(String key,
Collection<?> values)
Deprecated.
|
void |
addAllUnique(String key,
Collection<?> values)
Deprecated.
|
void |
addUnique(String key,
Object value)
Deprecated.
|
static LCStatus |
createStatus(String imageUrl,
String message)
create a status instance.
|
static LCStatus |
createStatusWithData(Map<String,Object> data)
create a status instance.
|
io.reactivex.Observable<LCNull> |
deleteInBackground()
delete status
|
static io.reactivex.Observable<LCNull> |
deleteInBackground(LCStatus status)
delete status(class method)
|
static io.reactivex.Observable<LCNull> |
deleteInBackground(LCUser asAuthenticatedUser,
LCStatus status)
delete status(class method)
|
boolean |
equals(Object obj) |
LCObject |
fetch()
Deprecated.
|
LCObject |
fetch(String includedKeys)
Deprecated.
|
LCObject |
fetchIfNeeded()
Deprecated.
|
io.reactivex.Observable<LCObject> |
fetchIfNeededInBackground()
Deprecated.
|
io.reactivex.Observable<LCObject> |
fetchInBackground()
Deprecated.
|
io.reactivex.Observable<LCObject> |
fetchInBackground(String includeKeys)
Deprecated.
|
Object |
get(String key)
get customized key value.
|
LCACL |
getACL()
Deprecated.
|
String |
getImageUrl()
get image url attribute.
|
String |
getInboxType()
到达收件箱类型, 默认是`default`,私信是`private`, 可以自定义任何类型
|
String |
getMessage()
get message text
|
long |
getMessageId()
此状态在用户 Inbox 中的 ID
注意: 仅用于分片查询,不具有唯一性
|
LCUser |
getSource()
获取 Status 的发送者
|
static io.reactivex.Observable<LCStatus> |
getStatusWithIdInBackground(LCUser asAuthenticatedUser,
String statusId)
fetch status with specified objectId
|
static io.reactivex.Observable<LCStatus> |
getStatusWithIdInBackground(String statusId)
fetch status with specified objectId
|
int |
hashCode() |
static LCStatusQuery |
inboxQuery(LCUser owner,
String inboxType)
query statuses send to User owner and with inboxType
default query direction: from NEW to OLD.
|
boolean |
isFetchWhenSave()
Deprecated.
|
void |
put(String key,
Object value)
添加 AVStatus 中的一对自定义内容
|
void |
refresh()
Deprecated.
|
void |
refresh(String includedKeys)
Deprecated.
|
io.reactivex.Observable<LCObject> |
refreshInBackground()
Deprecated.
|
void |
remove(String key)
删除 AVStatus 中的一对自定义内容
|
void |
save()
Deprecated.
|
void |
saveEventually()
Deprecated.
|
io.reactivex.Observable<? extends LCObject> |
saveInBackground()
Deprecated.
|
io.reactivex.Observable<LCStatus> |
sendPrivatelyInBackground(String receiverObjectId)
send privately message.
|
io.reactivex.Observable<LCStatus> |
sendToFollowersInBackground()
send status to followers.
|
io.reactivex.Observable<LCStatus> |
sendToFollowersInBackground(String inboxType)
send status with inboxType to followers.
|
io.reactivex.Observable<LCStatus> |
sendToUsersInBackground(LCQuery query)
send to user with query.
|
io.reactivex.Observable<LCStatus> |
sendToUsersInBackground(String inboxType,
LCQuery query)
send to user with query and inboxType.
|
void |
setACL(LCACL acl)
Deprecated.
|
void |
setFetchWhenSave(boolean fetchWhenSave)
Deprecated.
|
void |
setImageUrl(String imageUrl)
set image url attribute.
|
void |
setInboxType(String type)
set inbox type.
|
void |
setMessage(String msg)
set message text
|
protected void |
setMessageId(long messageId) |
void |
setSource(LCObject source)
set source of status
|
static LCStatusQuery |
statusQuery(LCUser source)
query statuses sent by User owner.
|
LCObject |
toObject() |
abortOperations, addNewOperation, bitAnd, bitOr, bitXor, cast, containsKey, createWithoutData, createWithoutData, decrement, decrement, delete, delete, deleteAll, deleteAll, deleteAllInBackground, deleteAllInBackground, deleteEventually, deleteEventually, deleteInBackground, disableAfterHook, disableBeforeHook, extractCascadingObjects, extractUnsavedFiles, fetch, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchInBackground, generateACLFromServerData, generateCascadingSaveObjects, generateChangedParam, 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, ignoreHook, increment, increment, internalClassName, internalGet, internalId, internalPut, isDataAvailable, onDataSynchronized, onSaveFailure, onSaveSuccess, parseLCObject, refresh, refreshInBackground, refreshInBackground, refreshInBackground, registerSubclass, removeAll, removeOperationForKey, resetAll, resetByRawData, resetServerData, save, saveAll, saveAll, saveAllInBackground, saveAllInBackground, saveEventually, saveInBackground, saveInBackground, saveInBackground, setClassName, setObjectId, toJSONObject, toJSONString, toString, validFieldName, verifyInternalId
public static final String CLASS_NAME
public static final String ATTR_MESSAGE_ID
public static final String ATTR_INBOX_TYPE
public static final String ATTR_SOURCE
public static final String ATTR_OWNER
public static final String ATTR_IMAGE
public static final String ATTR_MESSAGE
public static final int INVALID_MESSAGE_ID
public LCStatus()
public LCStatus(LCObject o)
o
- object instancepublic static LCStatus createStatus(String imageUrl, String message)
imageUrl
- image urlmessage
- message textpublic static LCStatus createStatusWithData(Map<String,Object> data)
data
- map datapublic void setImageUrl(String imageUrl)
imageUrl
- image urlpublic String getImageUrl()
public void setMessage(String msg)
msg
- the message text.public String getMessage()
public long getMessageId()
protected void setMessageId(long messageId)
public String getInboxType()
public LCUser getSource()
public void setSource(LCObject source)
source
- source user of the statuspublic void setInboxType(String type)
type
- inbox typepublic void remove(String key)
public io.reactivex.Observable<LCNull> deleteInBackground()
deleteInBackground
in class LCObject
public static io.reactivex.Observable<LCNull> deleteInBackground(LCStatus status)
status
- instance of AVStatuspublic static io.reactivex.Observable<LCNull> deleteInBackground(LCUser asAuthenticatedUser, LCStatus status)
asAuthenticatedUser
- explicit user for request authentication.status
- instance of AVStatuspublic static io.reactivex.Observable<LCStatus> getStatusWithIdInBackground(String statusId)
statusId
- status id.public static io.reactivex.Observable<LCStatus> getStatusWithIdInBackground(LCUser asAuthenticatedUser, String statusId)
asAuthenticatedUser
- explicit user for request authentication.statusId
- status id.public io.reactivex.Observable<LCStatus> sendToUsersInBackground(LCQuery query)
query
- instance of AVQuerypublic io.reactivex.Observable<LCStatus> sendToUsersInBackground(String inboxType, LCQuery query)
inboxType
- inbox typequery
- instance of AVQuerypublic io.reactivex.Observable<LCStatus> sendToFollowersInBackground()
public io.reactivex.Observable<LCStatus> sendToFollowersInBackground(String inboxType)
inboxType
- inbox typepublic io.reactivex.Observable<LCStatus> sendPrivatelyInBackground(String receiverObjectId)
receiverObjectId
- receiver objectIdpublic static LCStatusQuery statusQuery(LCUser source)
source
- source Userpublic static LCStatusQuery inboxQuery(LCUser owner, String inboxType)
owner
- owner userinboxType
- inbox typepublic LCObject toObject()
@Deprecated public void add(String key, Object value)
@Deprecated public LCACL getACL()
@Deprecated public void setACL(LCACL acl)
@Deprecated public void addAll(String key, Collection<?> values)
@Deprecated public void addAllUnique(String key, Collection<?> values)
addAllUnique
in class LCObject
key
- target key.values
- value collection.@Deprecated public void addUnique(String key, Object value)
@Deprecated public LCObject fetch()
@Deprecated public LCObject fetch(String includedKeys)
@Deprecated public void refresh()
@Deprecated public void refresh(String includedKeys)
@Deprecated public LCObject fetchIfNeeded()
fetchIfNeeded
in class LCObject
@Deprecated public io.reactivex.Observable<LCObject> fetchIfNeededInBackground()
fetchIfNeededInBackground
in class LCObject
@Deprecated public io.reactivex.Observable<LCObject> fetchInBackground()
fetchInBackground
in class LCObject
@Deprecated public io.reactivex.Observable<LCObject> refreshInBackground()
refreshInBackground
in class LCObject
@Deprecated public io.reactivex.Observable<LCObject> fetchInBackground(String includeKeys)
fetchInBackground
in class LCObject
includeKeys
- include keys, which object will be return together.@Deprecated public void save()
@Deprecated public io.reactivex.Observable<? extends LCObject> saveInBackground()
saveInBackground
in class LCObject
@Deprecated public void saveEventually()
saveEventually
in class LCObject
@Deprecated public boolean isFetchWhenSave()
isFetchWhenSave
in class LCObject
@Deprecated public void setFetchWhenSave(boolean fetchWhenSave)
setFetchWhenSave
in class LCObject
fetchWhenSave
- flag.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.