public class PermissionOfferResponse extends RealmObject
PermissionOffer
object.
It should be used in conjunction with an SyncUser
's management Realm.Constructor and Description |
---|
PermissionOfferResponse() |
PermissionOfferResponse(String token)
Construct a permission offer response object used to apply permission changes
defined in the permission offer object represented by the specified token,
which was created by another user's
PermissionOffer object. |
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt() |
String |
getId() |
String |
getRealmUrl() |
Integer |
getStatusCode()
Returns the status code for this change.
|
String |
getStatusMessage() |
String |
getToken() |
Date |
getUpdatedAt() |
boolean |
isSuccessful()
Check if the request was successfully handled by the Realm Object Server.
|
void |
setToken(String token) |
addChangeListener, addChangeListener, addChangeListener, addChangeListener, asObservable, asObservable, deleteFromRealm, deleteFromRealm, isLoaded, isLoaded, isManaged, isManaged, isValid, isValid, load, load, removeAllChangeListeners, removeAllChangeListeners, removeChangeListener, removeChangeListener, removeChangeListener, removeChangeListener, removeChangeListeners, removeChangeListeners
public PermissionOfferResponse()
public PermissionOfferResponse(String token)
PermissionOffer
object.token
- The received token which uniquely identifies another user's
PermissionOffer
.public void setToken(String token)
public String getId()
public Date getCreatedAt()
public Date getUpdatedAt()
public Integer getStatusCode()
null
if not yet processed. 0
if successful, >0
if an error happened. See getStatusMessage()
.public boolean isSuccessful()
true
if request was handled successfully. false
if not. See getStatusMessage()
for the full error message.public String getStatusMessage()
public String getToken()
public String getRealmUrl()