public class DweetLib
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DweetLib.DweetCallback |
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
CONNECTION_ERROR |
static java.lang.Integer |
COULD_NOT_CONNECT_TO_DWEETIO |
static java.lang.Integer |
COULD_NOT_CONNECT_TO_LOCKED_THING |
static java.lang.Integer |
COULD_NOT_GENERATE_JSON_FROM_DATA |
static java.lang.Integer |
DWEET_DID_NOT_RETURN_VALID_JSON |
static java.lang.Integer |
DWEET_JSON_FORMAT_UNEXPECTED |
static java.lang.Integer |
DWEET_RESPONSE_IS_FAILED |
static java.lang.Integer |
DWEET_STILL_PENDING |
static java.lang.Integer |
DWEET_SUCCESS |
static java.lang.Integer |
NO_NETWORK |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
adjectivesException(java.io.InputStream is,
java.lang.String newThingName,
java.util.ArrayList<java.lang.String> stringArray) |
static DweetLib |
getInstance(android.content.Context ctx) |
java.lang.String |
getRandomThingName() |
java.lang.String |
sendDweet(org.json.JSONObject data,
java.lang.String thing,
java.lang.String key,
java.lang.Object caller,
DweetLib.DweetCallback cb,
boolean overwrite) |
public static java.lang.Integer DWEET_STILL_PENDING
public static java.lang.Integer DWEET_SUCCESS
public static java.lang.Integer NO_NETWORK
public static java.lang.Integer COULD_NOT_CONNECT_TO_DWEETIO
public static java.lang.Integer DWEET_DID_NOT_RETURN_VALID_JSON
public static java.lang.Integer DWEET_JSON_FORMAT_UNEXPECTED
public static java.lang.Integer DWEET_RESPONSE_IS_FAILED
public static java.lang.Integer COULD_NOT_CONNECT_TO_LOCKED_THING
public static java.lang.Integer COULD_NOT_GENERATE_JSON_FROM_DATA
public static java.lang.Integer CONNECTION_ERROR
public static DweetLib getInstance(android.content.Context ctx)
public java.lang.String sendDweet(org.json.JSONObject data, java.lang.String thing, java.lang.String key, java.lang.Object caller, DweetLib.DweetCallback cb, boolean overwrite)
public java.lang.String getRandomThingName()
public java.lang.String adjectivesException(java.io.InputStream is, java.lang.String newThingName, java.util.ArrayList<java.lang.String> stringArray) throws java.io.IOException
java.io.IOException