程序包 cn.leancloud
类 LCFriendshipRequest
- java.lang.Object
-
- cn.leancloud.LCObject
-
- cn.leancloud.LCFriendshipRequest
-
public class LCFriendshipRequest extends LCObject
-
-
嵌套类概要
-
从类继承的嵌套类/接口 cn.leancloud.LCObject
LCObject.Hook
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringATTR_FRIENDstatic java.lang.StringATTR_STATUSstatic java.lang.StringATTR_USERstatic java.lang.StringCLASS_NAMEstatic java.lang.StringINTERNAL_STATUS_ACCEPTEDstatic java.lang.StringINTERNAL_STATUS_DECLINEDstatic intSTATUS_ACCEPTEDstatic intSTATUS_ANYstatic intSTATUS_DECLINEDstatic intSTATUS_PENDING-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 LCFriendshipRequest()LCFriendshipRequest(LCFriendshipRequest other)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 io.reactivex.Observable<? extends LCObject>accept(java.util.Map<java.lang.String,java.lang.Object> attributes)accept friend request by current user.io.reactivex.Observable<? extends LCObject>decline()decline friend request by current user.LCUsergetFriend()LCUsergetSourceUser()io.reactivex.Observable<? extends LCObject>saveInBackground(LCSaveOption option)Save object in background.voidsetFriend(LCUser user)voidsetSourceUser(LCUser user)-
从类继承的方法 cn.leancloud.LCObject
abortOperations, add, addAll, addAllUnique, addNewOperation, addUnique, bitAnd, bitOr, bitXor, cast, containsKey, createWithoutData, createWithoutData, decrement, decrement, delete, delete, deleteAll, deleteAll, deleteAllInBackground, deleteAllInBackground, deleteEventually, deleteEventually, deleteInBackground, deleteInBackground, disableAfterHook, disableBeforeHook, equals, extractCascadingObjects, extractUnsavedFiles, fetch, fetch, fetch, fetchIfNeeded, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchInBackground, fetchInBackground, fetchInBackground, generateACLFromServerData, generateCascadingSaveObjects, generateChangedParam, get, getACL, 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, hashCode, ignoreHook, increment, increment, internalClassName, internalGet, internalId, internalPut, isDataAvailable, isFetchWhenSave, onDataSynchronized, onSaveFailure, onSaveSuccess, parseLCObject, put, refresh, refresh, refresh, refreshInBackground, refreshInBackground, refreshInBackground, refreshInBackground, registerSubclass, remove, removeAll, removeOperationForKey, resetAll, resetByRawData, resetServerData, save, save, saveAll, saveAll, saveAllInBackground, saveAllInBackground, saveEventually, saveEventually, saveInBackground, saveInBackground, saveInBackground, setACL, setClassName, setFetchWhenSave, setObjectId, toJSONObject, toJSONString, toString, validFieldName, verifyInternalId
-
-
-
-
字段详细资料
-
CLASS_NAME
public static final java.lang.String CLASS_NAME
- 另请参阅:
- 常量字段值
-
ATTR_FRIEND
public static final java.lang.String ATTR_FRIEND
- 另请参阅:
- 常量字段值
-
ATTR_USER
public static final java.lang.String ATTR_USER
- 另请参阅:
- 常量字段值
-
ATTR_STATUS
public static final java.lang.String ATTR_STATUS
- 另请参阅:
- 常量字段值
-
INTERNAL_STATUS_ACCEPTED
public static final java.lang.String INTERNAL_STATUS_ACCEPTED
- 另请参阅:
- 常量字段值
-
INTERNAL_STATUS_DECLINED
public static final java.lang.String INTERNAL_STATUS_DECLINED
- 另请参阅:
- 常量字段值
-
STATUS_PENDING
public static final int STATUS_PENDING
- 另请参阅:
- 常量字段值
-
STATUS_ACCEPTED
public static final int STATUS_ACCEPTED
- 另请参阅:
- 常量字段值
-
STATUS_DECLINED
public static final int STATUS_DECLINED
- 另请参阅:
- 常量字段值
-
STATUS_ANY
public static final int STATUS_ANY
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
LCFriendshipRequest
public LCFriendshipRequest()
-
LCFriendshipRequest
public LCFriendshipRequest(LCFriendshipRequest other)
-
-
方法详细资料
-
setFriend
public void setFriend(LCUser user)
-
getFriend
public LCUser getFriend()
-
getSourceUser
public LCUser getSourceUser()
-
setSourceUser
public void setSourceUser(LCUser user)
-
accept
public io.reactivex.Observable<? extends LCObject> accept(java.util.Map<java.lang.String,java.lang.Object> attributes)
accept friend request by current user.- 参数:
attributes- additional attributes for this friend.- 返回:
- observable instance notice: attributes is necessary as parameter bcz they are not properties of FriendshipRequest.
-
decline
public io.reactivex.Observable<? extends LCObject> decline()
decline friend request by current user.- 返回:
- observable instance
-
saveInBackground
public io.reactivex.Observable<? extends LCObject> saveInBackground(LCSaveOption option)
从类复制的说明:LCObjectSave object in background.- 覆盖:
saveInBackground在类中LCObject- 参数:
option- save option.- 返回:
- observable instance.
-
-