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

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 72

Instance Attribute Details

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#inbox_idString

Parameters:

  • value (String)

Returns:

  • (String)


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

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>)


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

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

#last_message_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :last_message_at, Time

#last_message_idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :last_message_id, String

#message_countInteger

Total inbound and outbound messages in the thread.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :message_count, Integer

#previewString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :preview, String, nil?: true

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

Parameters:

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

Returns:



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

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

#subjectString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :subject, String, nil?: true

#unread_countInteger

Unread inbound messages; outbound messages never increment this count.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :unread_count, Integer

#updated_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


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

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: -> {