Class: Zavudev::Models::ConversationListResponse::LastMessage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::ConversationListResponse::LastMessage
- Defined in:
- lib/zavudev/models/conversation_list_response.rb,
sig/zavudev/models/conversation_list_response.rbs
Overview
Defined Under Namespace
Modules: Direction
Instance Attribute Summary collapse
- #at ⇒ Time
-
#channel ⇒ Symbol, Zavudev::Models::Channel
Delivery channel.
- #direction ⇒ Symbol, Zavudev::Models::ConversationListResponse::LastMessage::Direction
- #id ⇒ String
-
#text ⇒ String
Text or caption.
Instance Method Summary collapse
-
#initialize(id:, at:, channel:, direction:, text:) ⇒ Object
constructor
Denormalized preview of the most recent message, so a thread list needs no extra fetch.
- #to_hash ⇒ {
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(id:, at:, channel:, direction:, text:) ⇒ Object
Denormalized preview of the most recent message, so a thread list needs no extra fetch.
|
|
# File 'lib/zavudev/models/conversation_list_response.rb', line 153
|
Instance Attribute Details
#at ⇒ Time
134 |
# File 'lib/zavudev/models/conversation_list_response.rb', line 134 required :at, Time |
#channel ⇒ Symbol, Zavudev::Models::Channel
Delivery channel. Use 'auto' for intelligent routing.
140 |
# File 'lib/zavudev/models/conversation_list_response.rb', line 140 required :channel, enum: -> { Zavudev::Channel } |
#direction ⇒ Symbol, Zavudev::Models::ConversationListResponse::LastMessage::Direction
145 |
# File 'lib/zavudev/models/conversation_list_response.rb', line 145 required :direction, enum: -> { Zavudev::Models::ConversationListResponse::LastMessage::Direction } |
#id ⇒ String
129 |
# File 'lib/zavudev/models/conversation_list_response.rb', line 129 required :id, String |
#text ⇒ String
Text or caption. Empty when the last message carried no text (e.g. media).
151 |
# File 'lib/zavudev/models/conversation_list_response.rb', line 151 required :text, String |
Instance Method Details
#to_hash ⇒ {
121 |
# File 'sig/zavudev/models/conversation_list_response.rbs', line 121
def to_hash: -> {
|