public class AVStatus extends AVObject
| Modifier and Type | Class and Description |
|---|---|
static class |
AVStatus.INBOX_TYPE |
AVObject.AVObjectCreator, AVObject.Hook| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<AVStatus> |
CREATOR |
static String |
IMAGE_TAG |
static String |
INBOX_PRIVATE
Deprecated.
|
static String |
INBOX_TIMELINE
Deprecated.
|
static String |
MESSAGE_TAG |
static String |
STATUS_END_POINT |
acl, CREATED_AT, INVALID_KEYS, OBJECT_ID, objectId, requestStatistic, UPDATED_AT, updatedAt| Constructor and Description |
|---|
AVStatus() |
AVStatus(android.os.Parcel in) |
| 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.
|
boolean |
containsKey(String k)
Deprecated.
|
static AVStatus |
createStatus(String imageUrl,
String message) |
static AVStatus |
createStatusWithData(Map<String,Object> data) |
void |
delete()
Deletes this object on the server.
|
void |
deleteEventually()
Deprecated.
|
void |
deleteEventually(DeleteCallback callback)
Deprecated.
|
void |
deleteInBackground()
Deletes this object on the server in a background thread.
|
void |
deleteInBackground(DeleteCallback callback)
Deprecated.
|
static void |
deleteInboxStatus(long messageId,
String inboxType,
AVUser owner)
删除收件箱消息
|
static void |
deleteInboxStatusInBackground(long messageId,
String inboxType,
AVUser owner,
DeleteCallback callback)
删除收件箱消息
|
void |
deleteStatusInBackground(DeleteCallback callback)
删除当前的状态
|
static void |
deleteStatusWithID(String statusId) |
static void |
deleteStatusWithIDInBackgroud(String statusId,
DeleteCallback callback)
删除当前用户发布的某条状态
|
int |
describeContents() |
boolean |
equals(Object obj) |
AVObject |
fetch()
Deprecated.
|
AVObject |
fetch(String includedKeys)
Deprecated.
|
AVObject |
fetchIfNeeded()
Deprecated.
|
AVObject |
fetchIfNeeded(String includedKeys)
Deprecated.
|
void |
fetchIfNeededInBackground(GetCallback<AVObject> callback)
Deprecated.
|
void |
fetchIfNeededInBackground(String includedkeys,
GetCallback<AVObject> callback)
Deprecated.
|
void |
fetchInBackground(GetCallback<AVObject> callback)
Deprecated.
|
void |
fetchInBackground(String includeKeys,
GetCallback<AVObject> callback)
Deprecated.
|
Object |
get(String key)
Access a value.
|
AVACL |
getACL()
Deprecated.
|
<T extends AVFile> |
getAVFile(String key)
Deprecated.
|
AVGeoPoint |
getAVGeoPoint(String key)
Deprecated.
|
<T extends AVObject> |
getAVObject(String key)
Access a AVObject value.
|
<T extends AVUser> |
getAVUser(String key)
Deprecated.
|
boolean |
getBoolean(String key)
Deprecated.
|
byte[] |
getBytes(String key)
Deprecated.
|
Date |
getCreatedAt()
This reports time as the server sees it, so that if you create a AVObject, then wait a while,
and then call save(), the creation time will be the time of the first save() call rather than
the time the object was created locally.
|
Map<String,Object> |
getData() |
Date |
getDate(String key)
Deprecated.
|
double |
getDouble(String key)
Deprecated.
|
String |
getImageUrl() |
static void |
getInboxPrivteStatuses(long sid,
long count,
StatusListCallback callback)
Deprecated.
|
static void |
getInboxStatusesInBackground(long skip,
long limit,
StatusListCallback callback)
Deprecated.
|
static void |
getInboxStatusesWithInboxType(long skip,
long limit,
String inboxType,
StatusListCallback callback)
Deprecated.
|
String |
getInboxType()
到达收件箱类型, 默认是`default`,私信是`private`, 可以自定义任何类型
|
static void |
getInboxUnreadStatusesCountInBackgroud(CountCallback callback)
Deprecated.
|
static void |
getInboxUnreadStatusesCountWithInboxTypeInBackgroud(long sid,
long count,
String inboxType,
CountCallback callback)
Deprecated.
|
int |
getInt(String key)
Deprecated.
|
org.json.JSONArray |
getJSONArray(String key)
Deprecated.
|
org.json.JSONObject |
getJSONObject(String key)
Deprecated.
|
List |
getList(String key)
Deprecated.
|
long |
getLong(String key)
Deprecated.
|
<V> Map<String,V> |
getMap(String key)
Deprecated.
|
String |
getMessage() |
long |
getMessageId()
此状态在用户Inbox中的ID
|
Number |
getNumber(String key)
Deprecated.
|
String |
getObjectId()
Accessor to the object id.
|
<T extends AVObject> |
getRelation(String key)
Deprecated.
|
AVUser |
getSource()
获取Status的发送者
|
static void |
getStatuses(long skip,
long limit,
StatusListCallback callback)
Deprecated.
|
static void |
getStatusesFromCurrentUserWithType(String type,
long skip,
long limit,
StatusListCallback callback)
Deprecated.
|
static void |
getStatusesFromUser(String userObejctId,
long skip,
long limit,
StatusListCallback callback)
Deprecated.
|
static AVStatus |
getStatusWithId(String statusId) |
static void |
getStatusWithIdInBackgroud(String statusId,
StatusCallback callback) |
String |
getString(String key)
Deprecated.
|
static void |
getUnreadStatusesCountInBackground(String inboxType,
CountCallback callback) |
Date |
getUpdatedAt()
Deprecated.
|
String |
getUuid()
Deprecated.
|
boolean |
has(String key)
Deprecated.
|
boolean |
hasSameId(AVObject other)
Deprecated.
|
static AVStatusQuery |
inboxQuery(AVUser owner,
String inBoxType)
返回一个AVStatusQuery对象,用来查询用户收件箱内容
|
void |
increment(String key)
Deprecated.
|
void |
increment(String key,
Number amount)
Deprecated.
|
boolean |
isFetchWhenSave()
Deprecated.
|
Set<String> |
keySet()
Deprecated.
|
void |
put(String key,
Object value)
添加AVStatus中的一对自定义内容
|
protected void |
put(String key,
Object value,
boolean pending) |
void |
refresh()
Deprecated.
|
void |
refresh(String includeKeys)
Deprecated.
|
void |
refreshInBackground(RefreshCallback<AVObject> callback)
Deprecated.
|
void |
refreshInBackground(String includeKeys,
RefreshCallback<AVObject> callback)
Deprecated.
|
void |
remove(String key)
删除AVStatus中的一对自定义内容
|
void |
removeAll(String key,
Collection<?> values)
Deprecated.
|
void |
save()
Deprecated.
|
void |
saveEventually()
Deprecated.
|
void |
saveEventually(SaveCallback callback)
Deprecated.
|
void |
saveInBackground()
Deprecated.
|
void |
saveInBackground(SaveCallback callback)
Deprecated.
|
void |
send() |
void |
sendInBackground(SaveCallback callback) |
void |
sendInBackgroundWithBlock(SaveCallback callback)
Deprecated.
|
static void |
sendPrivateStatus(AVStatus status,
String receiverObjectId)
向用户发私信
|
static void |
sendPrivateStatusInBackgroud(AVStatus status,
String receiverObjectId,
SaveCallback callback)
向用户发私信
|
static void |
sendStatusToFollowersInBackgroud(AVStatus status,
SaveCallback callback)
向用户的粉丝发送新状态
|
void |
setACL(AVACL acl)
Deprecated.
|
protected void |
setCreatedAt(String date) |
void |
setData(Map<String,Object> data) |
void |
setFetchWhenSave(boolean fetchWhenSave)
Deprecated.
|
void |
setImageUrl(String url) |
void |
setInboxType(String type) |
void |
setMessage(String message) |
protected void |
setMessageId(long messageId) |
void |
setQuery(AVQuery query) |
void |
setSource(AVObject source) |
static AVStatusQuery |
statusQuery(AVUser owner)
返回一个AVStatusQuery对象,用来查询用户发件箱内容
|
AVObject |
toObject() |
String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int i) |
alwaysSaveAllKeyValues, alwaysUsePost, buildBatchParameterForNonSavedObject, cast, copyFromJson, copyFromMap, create, createWithoutData, createWithoutData, delete, deleteAll, deleteAllInBackground, deleteInBackground, deleteInBackground, disableAfterHook, disableBeforeHook, fetchAll, fetchAllIfNeeded, fetchAllIfNeededInBackground, fetchAllInBackground, getAVObject, getAVUser, getClassName, getList, getQuery, hashCode, headerMap, ignoreHook, internalClassName, internalId, isDataAvailable, onDataSynchronized, onSaveFailure, onSaveSuccess, parseAVObject, rebuildInstanceData, registerSubclass, save, saveAll, saveAllInBackground, saveAllInBackground, saveFileBeforeSave, saveInBackground, saveInBackground, setObjectId, shouldThrowException, toJSONObjectpublic static final String IMAGE_TAG
public static final String MESSAGE_TAG
@Deprecated public static final String INBOX_TIMELINE
@Deprecated public static final String INBOX_PRIVATE
public static final String STATUS_END_POINT
public static final transient android.os.Parcelable.Creator<AVStatus> CREATOR
public String getObjectId()
AVObjectgetObjectId in class AVObjectpublic Date getCreatedAt()
AVObjectgetCreatedAt in class AVObjectprotected void setCreatedAt(String date)
public void setImageUrl(String url)
public String getImageUrl()
public AVUser getSource()
public void setSource(AVObject source)
public void setInboxType(String type)
public void setQuery(AVQuery query)
public void setMessage(String message)
public String getMessage()
public void remove(String key)
public long getMessageId()
protected void setMessageId(long messageId)
public String getInboxType()
public void deleteStatusInBackground(DeleteCallback callback)
public static void deleteStatusWithIDInBackgroud(String statusId, DeleteCallback callback)
statusId - 状态的objectIdcallback - 回调结果public static void deleteStatusWithID(String statusId) throws AVException
statusId - AVExceptionpublic static void deleteInboxStatus(long messageId,
String inboxType,
AVUser owner)
throws Exception
messageId - 消息的messageIdinboxType - 收件箱类型owner - 消息所有者Exceptionpublic static void deleteInboxStatusInBackground(long messageId,
String inboxType,
AVUser owner,
DeleteCallback callback)
messageId - 消息的messageIdinboxType - 收件箱类型owner - 消息所有者callback - @Deprecated public static void getStatuses(long skip, long limit, StatusListCallback callback)
skip - 从某个状态id开始向下返回. 默认是`0`返回最新的.limit - 需要返回的条数 默认`100`,最大`100`callback - 回调结果@Deprecated public static void getStatusesFromCurrentUserWithType(String type, long skip, long limit, StatusListCallback callback)
type - 状态类型,默认是kAVStatusTypeTimeline, 可以是任意自定义字符串skip - 跳过条数limit - 需要返回的条数 默认`100`,最大`100`callback - 回调结果@Deprecated public static void getStatusesFromUser(String userObejctId, long skip, long limit, StatusListCallback callback)
userObejctId - 用户的objectIdskip - 跳过条数limit - 需要返回的条数 默认`100`,最大`100`callback - 回调结果@Deprecated public static void getInboxStatusesInBackground(long skip, long limit, StatusListCallback callback)
callback - 回调结果@Deprecated public static void getInboxStatusesWithInboxType(long skip, long limit, String inboxType, StatusListCallback callback)
public static void getUnreadStatusesCountInBackground(String inboxType, CountCallback callback)
@Deprecated public static void getInboxUnreadStatusesCountInBackgroud(CountCallback callback)
@Deprecated public static void getInboxUnreadStatusesCountWithInboxTypeInBackgroud(long sid, long count, String inboxType, CountCallback callback)
@Deprecated public static void getInboxPrivteStatuses(long sid, long count, StatusListCallback callback)
public static void getStatusWithIdInBackgroud(String statusId, StatusCallback callback)
public static AVStatus getStatusWithId(String statusId) throws AVException
AVException@Deprecated public void sendInBackgroundWithBlock(SaveCallback callback)
callback - 回调结果public void sendInBackground(SaveCallback callback)
public void send()
throws AVException
AVExceptionpublic static void sendStatusToFollowersInBackgroud(AVStatus status, SaveCallback callback)
status - 要发送的状态callback - 回调结果public static void sendPrivateStatusInBackgroud(AVStatus status, String receiverObjectId, SaveCallback callback)
status - 要发送的状态receiverObjectId - 接受私信的用户objectIdcallback - 回调结果public static void sendPrivateStatus(AVStatus status, String receiverObjectId) throws AVException
status - 要发送的状态receiverObjectId - 接受私信的用户objectIdAVException - 发送可能出现的异常public static AVStatusQuery statusQuery(AVUser owner) throws AVException
owner - AVExceptionpublic static AVStatusQuery inboxQuery(AVUser owner, String inBoxType)
owner - 收件箱的拥有者inBoxType - 收件箱类型@Deprecated public void add(String key, Object value)
@Deprecated public void addAll(String key, Collection<?> values)
@Deprecated public void addAllUnique(String key, Collection<?> values)
addAllUnique in class AVObjectkey - The key.values - The objects to add.@Deprecated public void addUnique(String key, Object value)
@Deprecated public boolean containsKey(String k)
containsKey in class AVObjectk - The key to check forpublic void delete()
throws AVException
AVObjectdelete in class AVObjectAVException - Throws an error if the object does not exist or if the internet fails.@Deprecated public void deleteEventually(DeleteCallback callback)
deleteEventually in class AVObjectcallback - callback which will be called if the delete completes before the app exits.@Deprecated public void deleteEventually()
deleteEventually in class AVObjectpublic void deleteInBackground()
AVObjectdeleteInBackground in class AVObjectpublic AVObject toObject()
@Deprecated public AVObject fetch()
@Deprecated public AVObject fetch(String includedKeys)
@Deprecated public AVObject fetchIfNeeded()
fetchIfNeeded in class AVObject@Deprecated public AVObject fetchIfNeeded(String includedKeys)
fetchIfNeeded in class AVObject@Deprecated public void fetchIfNeededInBackground(GetCallback<AVObject> callback)
fetchIfNeededInBackground in class AVObjectcallback - callback.done(object, e) is called when the fetch completes.@Deprecated public void fetchIfNeededInBackground(String includedkeys, GetCallback<AVObject> callback)
fetchIfNeededInBackground in class AVObjectincludedkeys - 以逗号隔开的include字段列表组成的字符串,形如'author,comment'callback - callback.done(object, e) is called when the fetch completes.@Deprecated public boolean isFetchWhenSave()
isFetchWhenSave in class AVObject@Deprecated public void setFetchWhenSave(boolean fetchWhenSave)
setFetchWhenSave in class AVObject@Deprecated public String getUuid()
@Deprecated public void deleteInBackground(DeleteCallback callback)
deleteInBackground in class AVObjectcallback - callback.done(e) is called when the delete completes.@Deprecated public void fetchInBackground(GetCallback<AVObject> callback)
fetchInBackground in class AVObjectcallback - callback.done(object, e) is called when the fetch completes.@Deprecated public void fetchInBackground(String includeKeys, GetCallback<AVObject> callback)
fetchInBackground in class AVObjectincludeKeys - 以逗号隔开的include字段列表组成的字符串,例如'author,comment'callback - callback.done(object, e) is called when the fetch completes.public Object get(String key)
AVObject@Deprecated public AVACL getACL()
@Deprecated public boolean getBoolean(String key)
getBoolean in class AVObjectkey - The key to access the value for.@Deprecated public byte[] getBytes(String key)
@Deprecated public Date getDate(String key)
@Deprecated public double getDouble(String key)
@Deprecated public int getInt(String key)
@Deprecated public org.json.JSONArray getJSONArray(String key)
getJSONArray in class AVObjectkey - The key to access the value for.@Deprecated public org.json.JSONObject getJSONObject(String key)
getJSONObject in class AVObjectkey - The key to access the value for.@Deprecated public List getList(String key)
@Deprecated public long getLong(String key)
@Deprecated public <V> Map<String,V> getMap(String key)
@Deprecated public Number getNumber(String key)
@Deprecated public <T extends AVFile> T getAVFile(String key)
@Deprecated public AVGeoPoint getAVGeoPoint(String key)
getAVGeoPoint in class AVObjectkey - The key to access the value forpublic <T extends AVObject> T getAVObject(String key)
AVObjectgetAVObject in class AVObjectT - AVObject subclasskey - The key to access the value for.@Deprecated public <T extends AVUser> T getAVUser(String key)
@Deprecated public <T extends AVObject> AVRelation<T> getRelation(String key)
getRelation in class AVObjectkey - The key to access the relation for.@Deprecated public String getString(String key)
@Deprecated public Date getUpdatedAt()
getUpdatedAt in class AVObject@Deprecated public boolean has(String key)
@Deprecated public boolean hasSameId(AVObject other)
@Deprecated public void increment(String key)
@Deprecated public void increment(String key, Number amount)
@Deprecated public Set<String> keySet()
@Deprecated public void refresh() throws AVException
refresh in class AVObjectAVException - Throws an exception if the server is inaccessible.@Deprecated public void refresh(String includeKeys) throws AVException
refresh in class AVObjectincludeKeys - 以逗号隔开的include字段列表字符串,例如'author,comment'AVException - Throws an exception if the server is inaccessible.@Deprecated public void refreshInBackground(RefreshCallback<AVObject> callback)
refreshInBackground in class AVObjectcallback - callback.done(object, e) is called when the refresh completes.@Deprecated public void refreshInBackground(String includeKeys, RefreshCallback<AVObject> callback)
refreshInBackground in class AVObjectincludeKeys - 以逗号隔开的include字段列表字符串,例如'author,comment'callback - callback.done(object, e) is called when the refresh completes.@Deprecated public void removeAll(String key, Collection<?> values)
@Deprecated public void save() throws AVException
save in class AVObjectAVException - exception during save operation@Deprecated public void saveEventually()
saveEventually in class AVObject@Deprecated public void saveEventually(SaveCallback callback)
saveEventually in class AVObjectcallback - A callback which will be called if the save completes before the app exits.@Deprecated public void saveInBackground()
saveInBackground in class AVObject@Deprecated public void saveInBackground(SaveCallback callback)
saveInBackground in class AVObjectcallback - callback.done(e) is called when the save completes.@Deprecated public void setACL(AVACL acl)
public int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class AVObjectpublic void writeToParcel(android.os.Parcel out,
int i)
writeToParcel in interface android.os.ParcelablewriteToParcel in class AVObjectCopyright © 2017. All rights reserved.