Attributes

open class Attributes

Attributes representation, can be set to Conversation, User, Participant or Message.

Constructors

Link copied to clipboard
constructor()
Create NULL attributes.
constructor(object: JSONObject)
Initialize attributes with a JSONObject.
constructor(array: JSONArray)
Initialize attributes with a JSONArray.
constructor(string: String)
Initialize attributes with a String.
constructor(number: Number)
Initialize attributes with a Number.
constructor(value: Boolean)
Initialize attributes with a boolean value.

Properties

Link copied to clipboard
Default attributes value.

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun getBoolean(): Boolean
Returns Boolean stored in attributes if getType of attributes is BOOLEAN, otherwise returns null.
Link copied to clipboard
open fun getJSONArray(): JSONArray
Returns JSONArray stored in attributes if getType of attributes is ARRAY, otherwise returns null.
Link copied to clipboard
open fun getJSONObject(): JSONObject
Returns JSONObject stored in attributes if getType of attributes is OBJECT, otherwise returns null.
Link copied to clipboard
open fun getNumber(): Number
Returns Number stored in attributes if getType of attributes is NUMBER, otherwise returns null.
Link copied to clipboard
open fun getString(): String
Returns String stored in attributes if getType of attributes is STRING, otherwise returns null.
Link copied to clipboard
Returns Type of attributes
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String