程序包 cn.leancloud
类 LCStatus
- java.lang.Object
-
- cn.leancloud.LCObject
-
- cn.leancloud.LCStatus
-
public class LCStatus extends LCObject
Status 预定义属性: 1. messageId, Integer, message sequence number, Receiver-side only 2. inboxType, String, identifier for multiple purpose, default is 'default' which stands for timeline. 3. source, Pointer, point to source user. 4. owner, Pointer, point to target user, Receiver-side only. status sample:
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classLCStatus.INBOX_TYPE-
从类继承的嵌套类/接口 cn.leancloud.LCObject
LCObject.Hook
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringATTR_IMAGEstatic java.lang.StringATTR_INBOX_TYPEstatic java.lang.StringATTR_MESSAGEstatic java.lang.StringATTR_MESSAGE_IDstatic java.lang.StringATTR_OWNERstatic java.lang.StringATTR_SOURCEstatic java.lang.StringCLASS_NAMEstatic intINVALID_MESSAGE_ID-
从类继承的字段 cn.leancloud.LCObject
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
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidadd(java.lang.String key, java.lang.Object value)已过时。voidaddAll(java.lang.String key, java.util.Collection<?> values)已过时。voidaddAllUnique(java.lang.String key, java.util.Collection<?> values)已过时。voidaddUnique(java.lang.String key, java.lang.Object value)已过时。static LCStatuscreateStatus(java.lang.String imageUrl, java.lang.String message)create a status instance.static LCStatuscreateStatusWithData(java.util.Map<java.lang.String,java.lang.Object> data)create a status instance.io.reactivex.Observable<LCNull>deleteInBackground()delete statusstatic 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)booleanequals(java.lang.Object obj)LCObjectfetch()已过时。LCObjectfetch(java.lang.String includedKeys)已过时。LCObjectfetchIfNeeded()已过时。io.reactivex.Observable<LCObject>fetchIfNeededInBackground()已过时。io.reactivex.Observable<LCObject>fetchInBackground()已过时。io.reactivex.Observable<LCObject>fetchInBackground(java.lang.String includeKeys)已过时。java.lang.Objectget(java.lang.String key)get customized key value.LCACLgetACL()已过时。java.lang.StringgetImageUrl()get image url attribute.java.lang.StringgetInboxType()到达收件箱类型, 默认是`default`,私信是`private`, 可以自定义任何类型java.lang.StringgetMessage()get message textlonggetMessageId()此状态在用户 Inbox 中的 ID 注意: 仅用于分片查询,不具有唯一性LCUsergetSource()获取 Status 的发送者static io.reactivex.Observable<LCStatus>getStatusWithIdInBackground(LCUser asAuthenticatedUser, java.lang.String statusId)fetch status with specified objectIdstatic io.reactivex.Observable<LCStatus>getStatusWithIdInBackground(java.lang.String statusId)fetch status with specified objectIdinthashCode()static LCStatusQueryinboxQuery(LCUser owner, java.lang.String inboxType)query statuses send to User owner and with inboxType default query direction: from NEW to OLD.booleanisFetchWhenSave()已过时。voidput(java.lang.String key, java.lang.Object value)添加 AVStatus 中的一对自定义内容voidrefresh()已过时。voidrefresh(java.lang.String includedKeys)已过时。io.reactivex.Observable<LCObject>refreshInBackground()已过时。voidremove(java.lang.String key)删除 AVStatus 中的一对自定义内容voidsave()已过时。voidsaveEventually()已过时。io.reactivex.Observable<? extends LCObject>saveInBackground()已过时。io.reactivex.Observable<LCStatus>sendPrivatelyInBackground(java.lang.String receiverObjectId)send privately message.io.reactivex.Observable<LCStatus>sendToFollowersInBackground()send status to followers.io.reactivex.Observable<LCStatus>sendToFollowersInBackground(java.lang.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(java.lang.String inboxType, LCQuery query)send to user with query and inboxType.voidsetACL(LCACL acl)已过时。voidsetFetchWhenSave(boolean fetchWhenSave)已过时。voidsetImageUrl(java.lang.String imageUrl)set image url attribute.voidsetInboxType(java.lang.String type)set inbox type.voidsetMessage(java.lang.String msg)set message textprotected voidsetMessageId(long messageId)voidsetSource(LCObject source)set source of statusstatic LCStatusQuerystatusQuery(LCUser source)query statuses sent by User owner.LCObjecttoObject()-
从类继承的方法 cn.leancloud.LCObject
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
-
-
-
-
字段详细资料
-
CLASS_NAME
public static final java.lang.String CLASS_NAME
- 另请参阅:
- 常量字段值
-
ATTR_MESSAGE_ID
public static final java.lang.String ATTR_MESSAGE_ID
- 另请参阅:
- 常量字段值
-
ATTR_INBOX_TYPE
public static final java.lang.String ATTR_INBOX_TYPE
- 另请参阅:
- 常量字段值
-
ATTR_SOURCE
public static final java.lang.String ATTR_SOURCE
- 另请参阅:
- 常量字段值
-
ATTR_OWNER
public static final java.lang.String ATTR_OWNER
- 另请参阅:
- 常量字段值
-
ATTR_IMAGE
public static final java.lang.String ATTR_IMAGE
- 另请参阅:
- 常量字段值
-
ATTR_MESSAGE
public static final java.lang.String ATTR_MESSAGE
- 另请参阅:
- 常量字段值
-
INVALID_MESSAGE_ID
public static final int INVALID_MESSAGE_ID
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
LCStatus
public LCStatus()
default constructor.
-
LCStatus
public LCStatus(LCObject o)
constructor from AVObject instance.- 参数:
o- object instance
-
-
方法详细资料
-
createStatus
public static LCStatus createStatus(java.lang.String imageUrl, java.lang.String message)
create a status instance.- 参数:
imageUrl- image urlmessage- message text- 返回:
- Return an instance of AVStatus
-
createStatusWithData
public static LCStatus createStatusWithData(java.util.Map<java.lang.String,java.lang.Object> data)
create a status instance.- 参数:
data- map data- 返回:
- Return an instance of AVStatus
-
setImageUrl
public void setImageUrl(java.lang.String imageUrl)
set image url attribute.- 参数:
imageUrl- image url
-
getImageUrl
public java.lang.String getImageUrl()
get image url attribute.- 返回:
- Return the value of image url
-
setMessage
public void setMessage(java.lang.String msg)
set message text- 参数:
msg- the message text.
-
getMessage
public java.lang.String getMessage()
get message text- 返回:
- Return the message text.
-
getMessageId
public long getMessageId()
此状态在用户 Inbox 中的 ID 注意: 仅用于分片查询,不具有唯一性- 返回:
- Return the message id in inbox.
-
setMessageId
protected void setMessageId(long messageId)
-
getInboxType
public java.lang.String getInboxType()
到达收件箱类型, 默认是`default`,私信是`private`, 可以自定义任何类型- 返回:
- inbox type.
-
getSource
public LCUser getSource()
获取 Status 的发送者- 返回:
- source user of the status
-
setSource
public void setSource(LCObject source)
set source of status- 参数:
source- source user of the status
-
setInboxType
public void setInboxType(java.lang.String type)
set inbox type.- 参数:
type- inbox type
-
put
public void put(java.lang.String key, java.lang.Object value)添加 AVStatus 中的一对自定义内容
-
get
public java.lang.Object get(java.lang.String key)
get customized key value.
-
remove
public void remove(java.lang.String key)
删除 AVStatus 中的一对自定义内容
-
deleteInBackground
public io.reactivex.Observable<LCNull> deleteInBackground()
delete status- 覆盖:
deleteInBackground在类中LCObject- 返回:
- Observable instance
-
deleteInBackground
public static io.reactivex.Observable<LCNull> deleteInBackground(LCStatus status)
delete status(class method)- 参数:
status- instance of AVStatus- 返回:
- Observable instance
-
deleteInBackground
public static io.reactivex.Observable<LCNull> deleteInBackground(LCUser asAuthenticatedUser, LCStatus status)
delete status(class method)- 参数:
asAuthenticatedUser- explicit user for request authentication.status- instance of AVStatus- 返回:
- Observable instance in general, this method should be invoked in lean engine.
-
getStatusWithIdInBackground
public static io.reactivex.Observable<LCStatus> getStatusWithIdInBackground(java.lang.String statusId)
fetch status with specified objectId- 参数:
statusId- status id.- 返回:
- Observable instance
-
getStatusWithIdInBackground
public static io.reactivex.Observable<LCStatus> getStatusWithIdInBackground(LCUser asAuthenticatedUser, java.lang.String statusId)
fetch status with specified objectId- 参数:
asAuthenticatedUser- explicit user for request authentication.statusId- status id.- 返回:
- Observable instance in general, this method should be invoked in lean engine.
-
sendToUsersInBackground
public io.reactivex.Observable<LCStatus> sendToUsersInBackground(LCQuery query)
send to user with query.- 参数:
query- instance of AVQuery- 返回:
- Observable instance
-
sendToUsersInBackground
public io.reactivex.Observable<LCStatus> sendToUsersInBackground(java.lang.String inboxType, LCQuery query)
send to user with query and inboxType.- 参数:
inboxType- inbox typequery- instance of AVQuery- 返回:
- Observable instance
-
sendToFollowersInBackground
public io.reactivex.Observable<LCStatus> sendToFollowersInBackground()
send status to followers.- 返回:
- Observable instance
-
sendToFollowersInBackground
public io.reactivex.Observable<LCStatus> sendToFollowersInBackground(java.lang.String inboxType)
send status with inboxType to followers.- 参数:
inboxType- inbox type- 返回:
- Observable instance
-
sendPrivatelyInBackground
public io.reactivex.Observable<LCStatus> sendPrivatelyInBackground(java.lang.String receiverObjectId)
send privately message.- 参数:
receiverObjectId- receiver objectId- 返回:
- Observable instance
-
statusQuery
public static LCStatusQuery statusQuery(LCUser source)
query statuses sent by User owner. default query direction: from NEW to OLD.- 参数:
source- source User- 返回:
- instance of AVStatusQuery
-
inboxQuery
public static LCStatusQuery inboxQuery(LCUser owner, java.lang.String inboxType)
query statuses send to User owner and with inboxType default query direction: from NEW to OLD.- 参数:
owner- owner userinboxType- inbox type- 返回:
- instance of AVStatusQuery
-
toObject
public LCObject toObject()
-
add
@Deprecated public void add(java.lang.String key, java.lang.Object value)已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
getACL
@Deprecated public LCACL getACL()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
setACL
@Deprecated public void setACL(LCACL acl)
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
addAll
@Deprecated public void addAll(java.lang.String key, java.util.Collection<?> values)已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
addAllUnique
@Deprecated public void addAllUnique(java.lang.String key, java.util.Collection<?> values)已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
addAllUnique在类中LCObject- 参数:
key- target key.values- value collection.
-
addUnique
@Deprecated public void addUnique(java.lang.String key, java.lang.Object value)已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
fetch
@Deprecated public LCObject fetch()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
fetch
@Deprecated public LCObject fetch(java.lang.String includedKeys)
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
refresh
@Deprecated public void refresh()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
refresh
@Deprecated public void refresh(java.lang.String includedKeys)
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
fetchIfNeeded
@Deprecated public LCObject fetchIfNeeded()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
fetchIfNeeded在类中LCObject- 返回:
- current object.
-
fetchIfNeededInBackground
@Deprecated public io.reactivex.Observable<LCObject> fetchIfNeededInBackground()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
fetchIfNeededInBackground在类中LCObject- 返回:
- observable instance.
-
fetchInBackground
@Deprecated public io.reactivex.Observable<LCObject> fetchInBackground()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
fetchInBackground在类中LCObject- 返回:
- observable instance.
-
refreshInBackground
@Deprecated public io.reactivex.Observable<LCObject> refreshInBackground()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
refreshInBackground在类中LCObject- 返回:
- observable instance.
-
fetchInBackground
@Deprecated public io.reactivex.Observable<LCObject> fetchInBackground(java.lang.String includeKeys)
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
fetchInBackground在类中LCObject- 参数:
includeKeys- include keys, which object will be return together.- 返回:
- observable instance.
-
save
@Deprecated public void save()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException
-
saveInBackground
@Deprecated public io.reactivex.Observable<? extends LCObject> saveInBackground()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
saveInBackground在类中LCObject- 返回:
- observable instance.
-
saveEventually
@Deprecated public void saveEventually()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
saveEventually在类中LCObject
-
isFetchWhenSave
@Deprecated public boolean isFetchWhenSave()
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
isFetchWhenSave在类中LCObject- 返回:
- flag for fetchWhenSave.
-
setFetchWhenSave
@Deprecated public void setFetchWhenSave(boolean fetchWhenSave)
已过时。此方法并没有实现,调用会抛出 UnsupportedOperationException- 覆盖:
setFetchWhenSave在类中LCObject- 参数:
fetchWhenSave- flag.
-
-