Class ChatKitWidgetItem
-
- All Implemented Interfaces:
public final class ChatKitWidgetItemThread item that renders a widget payload.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatKitWidgetItem.BuilderA builder for ChatKitWidgetItem.
-
Method Summary
Modifier and Type Method Description final Stringid()Identifier of the thread item. final LongcreatedAt()Unix timestamp (in seconds) for when the item was created. final JsonValue_object_()Type discriminator that is always chatkit.thread_item.final StringthreadId()Identifier of the parent thread. final JsonValue_type()Type discriminator that is always chatkit.widget.final Stringwidget()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.BuildertoBuilder()final ChatKitWidgetItemvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatKitWidgetItem.Builderbuilder()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()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
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()
-
-
-
-