Class: Google::Apis::ChatV1::ThreadReadState
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::ThreadReadState
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A user's read state within a thread, used to identify read and unread messages.
Instance Attribute Summary collapse
-
#last_read_time ⇒ String
The time when the user's thread read state was updated.
-
#name ⇒ String
Resource name of the thread read state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThreadReadState
constructor
A new instance of ThreadReadState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ThreadReadState
Returns a new instance of ThreadReadState.
5652 5653 5654 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5652 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_read_time ⇒ String
The time when the user's thread read state was updated. Usually this
corresponds with the timestamp of the last read message in a thread.
Corresponds to the JSON property lastReadTime
5644 5645 5646 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5644 def last_read_time @last_read_time end |
#name ⇒ String
Resource name of the thread read state. Format: users/
user/spaces/
space/
threads/
thread/threadReadState
Corresponds to the JSON property name
5650 5651 5652 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5650 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5657 5658 5659 5660 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5657 def update!(**args) @last_read_time = args[:last_read_time] if args.key?(:last_read_time) @name = args[:name] if args.key?(:name) end |