public class AVStatus extends AVObject
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AVStatus.INBOX_TYPE |
AVObject.Hook| 限定符和类型 | 字段和说明 |
|---|---|
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| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(String key,
Object value)
已过时。
|
void |
addAll(String key,
Collection<?> values)
已过时。
|
void |
addAllUnique(String key,
Collection<?> values)
已过时。
|
void |
addUnique(String key,
Object value)
已过时。
|
static AVStatus |
createStatus(String imageUrl,
String message)
create a status instance.
|
static AVStatus |
createStatusWithData(Map<String,Object> data)
create a status instance.
|
io.reactivex.Observable<AVNull> |
deleteInBackground()
delete status
|
static io.reactivex.Observable<AVNull> |
deleteInBackground(AVStatus status)
delete status(class method)
|
boolean |
equals(Object obj) |
AVObject |
fetch()
已过时。
|
AVObject |
fetch(String includedKeys)
已过时。
|
AVObject |
fetchIfNeeded()
已过时。
|
io.reactivex.Observable<AVObject> |
fetchIfNeededInBackground()
已过时。
|
io.reactivex.Observable<AVObject> |
fetchInBackground()
已过时。
|
io.reactivex.Observable<AVObject> |
fetchInBackground(String includeKeys)
已过时。
|
Object |
get(String key)
get customized key value.
|
AVACL |
getACL()
已过时。
|
String |
getImageUrl()
get image url attribute.
|
String |
getInboxType()
到达收件箱类型, 默认是`default`,私信是`private`, 可以自定义任何类型
|
String |
getMessage()
get message text
|
long |
getMessageId()
此状态在用户 Inbox 中的 ID
注意: 仅用于分片查询,不具有唯一性
|
AVUser |
getSource()
获取 Status 的发送者
|
static io.reactivex.Observable<AVStatus> |
getStatusWithIdInBackground(String statusId)
fetch status with specified objectId
|
static AVStatusQuery |
inboxQuery(AVUser owner,
String inboxType)
query statuses send to User owner and with inboxType
default query direction: from NEW to OLD.
|
boolean |
isFetchWhenSave()
已过时。
|
void |
put(String key,
Object value)
添加 AVStatus 中的一对自定义内容
|
void |
refresh()
已过时。
|
void |
refresh(String includedKeys)
已过时。
|
io.reactivex.Observable<AVObject> |
refreshInBackground()
已过时。
|
void |
remove(String key)
删除 AVStatus 中的一对自定义内容
|
void |
save()
已过时。
|
void |
saveEventually()
已过时。
|
io.reactivex.Observable<? extends AVObject> |
saveInBackground()
已过时。
|
io.reactivex.Observable<AVStatus> |
sendPrivatelyInBackground(String receiverObjectId)
send privately message.
|
io.reactivex.Observable<AVStatus> |
sendToFollowersInBackground()
send status to followers.
|
io.reactivex.Observable<AVStatus> |
sendToFollowersInBackground(String inboxType)
send status with inboxType to followers.
|
io.reactivex.Observable<AVStatus> |
sendToUsersInBackground(AVQuery query)
send to user with query.
|
io.reactivex.Observable<AVStatus> |
sendToUsersInBackground(String inboxType,
AVQuery query)
send to user with query and inboxType.
|
void |
setACL(AVACL acl)
已过时。
|
void |
setFetchWhenSave(boolean fetchWhenSave)
已过时。
|
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(AVObject source)
set source of status
|
static AVStatusQuery |
statusQuery(AVUser source)
query statuses sent by User owner.
|
AVObject |
toObject() |
abortOperations, addNewOperation, bitAnd, bitOr, bitXor, cast, containsKey, createWithoutData, createWithoutData, decrement, decrement, delete, deleteAll, deleteAllInBackground, deleteEventually, disableAfterHook, disableBeforeHook, extractCascadingObjects, extractUnsavedFiles, fetchIfNeededInBackground, generateACLFromServerData, generateCascadingSaveObjects, generateChangedParam, getAVFile, getAVGeoPoint, getAVObject, getBoolean, getBytes, getClassName, getCreatedAt, getCreatedAtString, getDate, getDouble, getInt, getJSONArray, getJSONObject, getList, getLong, getNumber, getObjectId, getQuery, getRelation, getRequestMethod, getRequestRawEndpoint, getServerData, getString, getUnsavedFiles, getUpdatedAt, getUpdatedAtString, getUuid, has, hasCircleReference, hashCode, ignoreHook, increment, increment, internalClassName, internalId, isDataAvailable, onDataSynchronized, onSaveFailure, onSaveSuccess, parseAVObject, refreshInBackground, registerSubclass, removeAll, resetAll, resetByRawData, resetServerData, saveAll, saveAllInBackground, saveInBackground, setClassName, setObjectId, toJSONObject, toJSONString, toString, validFieldName, verifyInternalIdpublic AVStatus()
public AVStatus(AVObject o)
public static AVStatus createStatus(String imageUrl, String message)
imageUrl - image urlmessage - message textpublic static AVStatus 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 AVUser getSource()
public void setSource(AVObject source)
source - source user of the statuspublic void setInboxType(String type)
type - inbox typepublic void remove(String key)
public io.reactivex.Observable<AVNull> deleteInBackground()
deleteInBackground 在类中 AVObjectpublic static io.reactivex.Observable<AVNull> deleteInBackground(AVStatus status)
status - instance of AVStatuspublic static io.reactivex.Observable<AVStatus> getStatusWithIdInBackground(String statusId)
statusId - status id.public io.reactivex.Observable<AVStatus> sendToUsersInBackground(AVQuery query)
query - instance of AVQuerypublic io.reactivex.Observable<AVStatus> sendToUsersInBackground(String inboxType, AVQuery query)
inboxType - inbox typequery - instance of AVQuerypublic io.reactivex.Observable<AVStatus> sendToFollowersInBackground()
public io.reactivex.Observable<AVStatus> sendToFollowersInBackground(String inboxType)
inboxType - inbox typepublic io.reactivex.Observable<AVStatus> sendPrivatelyInBackground(String receiverObjectId)
receiverObjectId - receiver objectIdpublic static AVStatusQuery statusQuery(AVUser source)
source - source Userpublic static AVStatusQuery inboxQuery(AVUser owner, String inboxType)
owner - owner userinboxType - inbox typepublic AVObject toObject()
@Deprecated public void add(String key, Object value)
@Deprecated public AVACL getACL()
@Deprecated public void setACL(AVACL acl)
@Deprecated public void addAll(String key, Collection<?> values)
@Deprecated public void addAllUnique(String key, Collection<?> values)
addAllUnique 在类中 AVObjectkey - target key.values - value collection.@Deprecated public void addUnique(String key, Object value)
@Deprecated public AVObject fetch()
@Deprecated public AVObject fetch(String includedKeys)
@Deprecated public void refresh()
@Deprecated public void refresh(String includedKeys)
@Deprecated public AVObject fetchIfNeeded()
fetchIfNeeded 在类中 AVObject@Deprecated public io.reactivex.Observable<AVObject> fetchIfNeededInBackground()
fetchIfNeededInBackground 在类中 AVObject@Deprecated public io.reactivex.Observable<AVObject> fetchInBackground()
fetchInBackground 在类中 AVObject@Deprecated public io.reactivex.Observable<AVObject> refreshInBackground()
refreshInBackground 在类中 AVObject@Deprecated public io.reactivex.Observable<AVObject> fetchInBackground(String includeKeys)
fetchInBackground 在类中 AVObjectincludeKeys - include keys, which object will be return together.@Deprecated public void save()
@Deprecated public io.reactivex.Observable<? extends AVObject> saveInBackground()
saveInBackground 在类中 AVObject@Deprecated public void saveEventually()
saveEventually 在类中 AVObject@Deprecated public boolean isFetchWhenSave()
isFetchWhenSave 在类中 AVObject@Deprecated public void setFetchWhenSave(boolean fetchWhenSave)
setFetchWhenSave 在类中 AVObjectfetchWhenSave - flag.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.