Class ChatKitWidgetItem
-
- All Implemented Interfaces:
public final class ChatKitWidgetItem
Thread item that renders a widget payload.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatKitWidgetItem.Builder
A builder for ChatKitWidgetItem.
-
Method Summary
Modifier and Type Method Description final String
id()
Identifier of the thread item. final Long
createdAt()
Unix timestamp (in seconds) for when the item was created. final JsonValue
_object_()
Type discriminator that is always chatkit.thread_item
.final String
threadId()
Identifier of the parent thread. final JsonValue
_type()
Type discriminator that is always chatkit.widget
.final String
widget()
Serialized widget payload rendered in the UI. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<Long>
_createdAt()
Returns the raw JSON value of createdAt. final JsonField<String>
_threadId()
Returns the raw JSON value of threadId. final JsonField<String>
_widget()
Returns the raw JSON value of widget. final Map<String, JsonValue>
_additionalProperties()
final ChatKitWidgetItem.Builder
toBuilder()
final ChatKitWidgetItem
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatKitWidgetItem.Builder
builder()
Returns a mutable builder for constructing an instance of ChatKitWidgetItem. -
-
Method Detail
-
_object_
final JsonValue _object_()
Type discriminator that is always
chatkit.thread_item
.Expected to always return the following:
JsonValue.from("chatkit.thread_item")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_type
final JsonValue _type()
Type discriminator that is always
chatkit.widget
.Expected to always return the following:
JsonValue.from("chatkit.widget")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_threadId
final JsonField<String> _threadId()
Returns the raw JSON value of threadId.
Unlike threadId, this method doesn't throw if the JSON field has an unexpected type.
-
_widget
final JsonField<String> _widget()
Returns the raw JSON value of widget.
Unlike widget, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatKitWidgetItem.Builder toBuilder()
-
validate
final ChatKitWidgetItem validate()
-
builder
final static ChatKitWidgetItem.Builder builder()
Returns a mutable builder for constructing an instance of ChatKitWidgetItem.
The following fields are required:
.id() .createdAt() .threadId() .widget()
-
-
-
-