public interface JsonConstructable<K,T>
User
and ChatMessage
Modifier and Type | Method and Description |
---|---|
Existence |
getExists()
See
Existence |
K |
getPrimaryKey() |
T |
setAttributes(JSONObject json)
Updates the the attributes of the
JsonConstructable based on the values in the JSONObject |
void |
setExists(Existence exists)
See
Existence |
JsonConstructable |
shallowCopy()
Creates a shallow copy of the receiver
|
T setAttributes(JSONObject json)
JsonConstructable
based on the values in the JSONObject
json
- The JSONObject used to update the attributes of this JsonConstructable
void setExists(Existence exists)
Existence
exists
- sets the expected Existence value on the object.Existence getExists()
Existence
Existence.MAYBE
, Existence.YES
or Existence.NO
K getPrimaryKey()
JsonConstructable shallowCopy()