Class: Knockapi::Models::MessageGetContentResponse::Data::MessageChatContent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/message_get_content_response.rb

Defined Under Namespace

Classes: Template

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(_typename:, connection:, template:, metadata: nil) ⇒ Object

The content of a chat message.

Parameters:



# File 'lib/knockapi/models/message_get_content_response.rb', line 239

Instance Attribute Details

#_typenameString

The typename of the schema.

Returns:

  • (String)


219
# File 'lib/knockapi/models/message_get_content_response.rb', line 219

required :_typename, String, api_name: :__typename

#connectionHash{Symbol=>Object}

The channel data connection from the recipient to the underlying provider.

Returns:



225
# File 'lib/knockapi/models/message_get_content_response.rb', line 225

required :connection, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown]

#metadataHash{Symbol=>Object}?

Additional metadata associated with the chat message.

Returns:



237
# File 'lib/knockapi/models/message_get_content_response.rb', line 237

optional :metadata, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true

#templateKnockapi::Models::MessageGetContentResponse::Data::MessageChatContent::Template

The template structure for the chat message.



231
# File 'lib/knockapi/models/message_get_content_response.rb', line 231

required :template, -> { Knockapi::Models::MessageGetContentResponse::Data::MessageChatContent::Template }