Hubiquitus Android  0.6.1
Android client for hubiquitus protocol
org.hubiquitus.hapi.hStructures.HResult Class Reference

Inherits JSONObject.

List of all members.

Public Member Functions

 HResult (JSONObject jsonObj) throws JSONException
ResultStatus getStatus ()
void setStatus (ResultStatus status) throws MissingAttrException
Object getResult ()
JSONObject getResultAsJSONObject ()
JSONArray getResultAsJSONArray ()
String getResultAsString ()
Boolean getResultAsBoolean ()
Integer getResultAsInt ()
Double getResultAsDouble ()
void setResult (Object result)
void setResult (JSONObject result)
void setResult (JSONArray result)
void setResult (String result)
void setResult (Boolean result)
void setResult (Integer result)
void setResult (Double result)

Package Attributes

final Logger logger = LoggerFactory.getLogger(HResult.class)

Detailed Description

Version:
0.6 hAPI result. For more info, see Hubiquitus reference

Member Function Documentation

if we don't know the result type.

Returns:
result of a command operation or a subscriptions operation.

if result type is Boolean

if result type is Double

if result type is Integer

if result type is a JSONArray

if result type is a JSONObject

Returns:
result of a command operation or a subscriptions operation.

if result type is a String

Returns:
result of a command operation or a subscriptions operation.

Mandatory. Execution status.

Returns:
status. NULL if undefined

The result type could be JSONObject, JSONArray, String, Boolean, Number.

Parameters:
result

The documentation for this class was generated from the following file:
 All Classes Functions Variables