Package cn.leancloud
Class LCFriendshipRequest
java.lang.Object
cn.leancloud.LCObject
cn.leancloud.LCFriendshipRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class cn.leancloud.LCObject
LCObject.Hook -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intFields inherited from class 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.Observable<? extends LCObject> accept friend request by current user.io.reactivex.Observable<? extends LCObject> decline()decline friend request by current user.io.reactivex.Observable<? extends LCObject> saveInBackground(LCSaveOption option) Save object in background.voidvoidsetSourceUser(LCUser user) Methods inherited from class 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
-
Field Details
-
CLASS_NAME
- See Also:
-
ATTR_FRIEND
- See Also:
-
ATTR_USER
- See Also:
-
ATTR_STATUS
- See Also:
-
INTERNAL_STATUS_ACCEPTED
- See Also:
-
INTERNAL_STATUS_DECLINED
- See Also:
-
STATUS_PENDING
public static final int STATUS_PENDING- See Also:
-
STATUS_ACCEPTED
public static final int STATUS_ACCEPTED- See Also:
-
STATUS_DECLINED
public static final int STATUS_DECLINED- See Also:
-
STATUS_ANY
public static final int STATUS_ANY- See Also:
-
-
Constructor Details
-
LCFriendshipRequest
public LCFriendshipRequest() -
LCFriendshipRequest
-
-
Method Details
-
setFriend
-
getFriend
-
getSourceUser
-
setSourceUser
-
accept
accept friend request by current user.- Parameters:
attributes- additional attributes for this friend.- Returns:
- observable instance notice: attributes is necessary as parameter bcz they are not properties of FriendshipRequest.
-
decline
decline friend request by current user.- Returns:
- observable instance
-
saveInBackground
Description copied from class:LCObjectSave object in background.- Overrides:
saveInBackgroundin classLCObject- Parameters:
option- save option.- Returns:
- observable instance.
-