public class Resource extends Object
Modifier and Type | Field and Description |
---|---|
long |
id
resource ID
|
String |
type
resource type
|
Modifier and Type | Method and Description |
---|---|
static Resource |
getCreatedResource(Message message)
Loads resource informations from the response
Message of a created
object. |
static Resource |
getCreatedResource(Messages messages)
Loads resource informations from the response
Messages of a created
object. |
static Resource |
getMessageResource(Message message)
Loads resource informations from the response
Message . |
static Resource |
getMessageResource(Messages messages)
Loads resource informations from the response
Messages . |
public final String type
public final long id
public Resource(String type, long id)
public static Resource getCreatedResource(Messages messages)
Messages
of a created
object.messages
- messages from the body of the HTTP responsepublic static Resource getCreatedResource(Message message)
Message
of a created
object.message
- message from the body of the HTTP responsepublic static Resource getMessageResource(Messages messages)
Messages
.messages
- messages from the body of the HTTP responseCopyright © 2014 OpenEstate. All rights reserved.