public class LCFriendshipRequest extends LCObject
LCObject.Hook
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_FRIEND |
static String |
ATTR_STATUS |
static String |
ATTR_USER |
static String |
CLASS_NAME |
static String |
INTERNAL_STATUS_ACCEPTED |
static String |
INTERNAL_STATUS_DECLINED |
static int |
STATUS_ACCEPTED |
static int |
STATUS_ANY |
static int |
STATUS_DECLINED |
static int |
STATUS_PENDING |
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 and Description |
---|
LCFriendshipRequest() |
LCFriendshipRequest(LCFriendshipRequest other) |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<? extends LCObject> |
accept(Map<String,Object> attributes)
accept friend request by current user.
|
io.reactivex.Observable<? extends LCObject> |
decline()
decline friend request by current user.
|
LCUser |
getFriend() |
LCUser |
getSourceUser() |
io.reactivex.Observable<? extends LCObject> |
saveInBackground(LCSaveOption option)
Save object in background.
|
void |
setFriend(LCUser user) |
void |
setSourceUser(LCUser user) |
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
public static final String CLASS_NAME
public static final String ATTR_FRIEND
public static final String ATTR_USER
public static final String ATTR_STATUS
public static final String INTERNAL_STATUS_ACCEPTED
public static final String INTERNAL_STATUS_DECLINED
public static final int STATUS_PENDING
public static final int STATUS_ACCEPTED
public static final int STATUS_DECLINED
public static final int STATUS_ANY
public LCFriendshipRequest()
public LCFriendshipRequest(LCFriendshipRequest other)
public void setFriend(LCUser user)
public LCUser getFriend()
public LCUser getSourceUser()
public void setSourceUser(LCUser user)
public io.reactivex.Observable<? extends LCObject> accept(Map<String,Object> attributes)
attributes
- additional attributes for this friend.public io.reactivex.Observable<? extends LCObject> decline()
public io.reactivex.Observable<? extends LCObject> saveInBackground(LCSaveOption option)
LCObject
saveInBackground
in class LCObject
option
- save option.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.