Chat Android SDK
7.0.1
|
Attributes representation, can be set to Channel, User, Member or Message. More...
Public Member Functions | |
Attributes () | |
Create NULL attributes. | |
Attributes (@NonNull JSONObject object) | |
Initialize attributes with a JSONObject. | |
Attributes (@NonNull JSONArray array) | |
Initialize attributes with a JSONArray. | |
Attributes (@NonNull String string) | |
Initialize attributes with a String. | |
Attributes (@NonNull Number number) | |
Initialize attributes with a Number. | |
Attributes (boolean value) | |
Initialize attributes with a boolean value. | |
Type | getType () |
JSONObject | getJSONObject () |
JSONArray | getJSONArray () |
String | getString () |
Number | getNumber () |
Boolean | getBoolean () |
Static Public Attributes | |
static final Attributes | DEFAULT = new Attributes(new JSONObject()) |
Default attributes value. More... | |
Attributes representation, can be set to Channel, User, Member or Message.
Boolean com.twilio.chat.Attributes.getBoolean | ( | ) |
null
. JSONArray com.twilio.chat.Attributes.getJSONArray | ( | ) |
null
. JSONObject com.twilio.chat.Attributes.getJSONObject | ( | ) |
null
. Number com.twilio.chat.Attributes.getNumber | ( | ) |
null
. String com.twilio.chat.Attributes.getString | ( | ) |
null
. Type com.twilio.chat.Attributes.getType | ( | ) |
|
static |
Default attributes value.