Class: Telnyx::Models::EmailInboxes::InboundThread

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/email_inboxes/inbound_thread.rb,
sig/telnyx/models/email_inboxes/inbound_thread.rbs

Overview

See Also:

  • Telnyx::Resources::EmailInboxes::Threads#list

Direct Known Subclasses

InboundThreadDetail

Defined Under Namespace

Modules: RecordType

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(id:, created_at:, inbox_id:, labels:, last_message_at:, last_message_id:, message_count:, preview:, record_type:, subject:, unread_count:, updated_at:) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::EmailInboxes::InboundThread for more details.

Parameters:

  • id (String)
  • created_at (Time)
  • inbox_id (String)
  • labels (Array<String>)

    Mutable thread labels used for agent workflow state. Independent of the labels o

  • last_message_at (Time)
  • last_message_id (String)
  • message_count (Integer)

    Total inbound and outbound messages in the thread.

  • preview (String, nil)
  • record_type (Symbol, Telnyx::Models::EmailInboxes::InboundThread::RecordType)
  • subject (String, nil)
  • unread_count (Integer)

    Unread inbound messages; outbound messages never increment this count.

  • updated_at (Time)


# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 73

Instance Attribute Details

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


16
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 16

required :created_at, Time

#idString

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 11

required :id, String

#inbox_idString

Parameters:

  • value (String)

Returns:

  • (String)


21
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 21

required :inbox_id, String

#labelsArray<String>

Mutable thread labels used for agent workflow state. Independent of the labels on the thread's messages, and distinct from the send-time tags on outbound messages.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


29
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 29

required :labels, Telnyx::Internal::Type::ArrayOf[String]

#last_message_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


34
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 34

required :last_message_at, Time

#last_message_idString

Parameters:

  • value (String)

Returns:

  • (String)


39
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 39

required :last_message_id, String

#message_countInteger

Total inbound and outbound messages in the thread.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


45
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 45

required :message_count, Integer

#previewString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


50
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 50

required :preview, String, nil?: true

#record_typeSymbol, Telnyx::Models::EmailInboxes::InboundThread::RecordType

Parameters:

  • value (Telnyx::Models::EmailInboxes::InboundThread::record_type)

Returns:



55
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 55

required :record_type, enum: -> { Telnyx::EmailInboxes::InboundThread::RecordType }

#subjectString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


60
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 60

required :subject, String, nil?: true

#unread_countInteger

Unread inbound messages; outbound messages never increment this count.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


66
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 66

required :unread_count, Integer

#updated_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


71
# File 'lib/telnyx/models/email_inboxes/inbound_thread.rb', line 71

required :updated_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


60
# File 'sig/telnyx/models/email_inboxes/inbound_thread.rbs', line 60

def to_hash: -> {