Class: Google::Apis::ChatV1::SpaceReadState

Inherits:
Object
  • Object
show all
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 space, used to identify read and unread messages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpaceReadState

Returns a new instance of SpaceReadState.



5460
5461
5462
# File 'lib/google/apis/chat_v1/classes.rb', line 5460

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#last_read_timeString

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space. Corresponds to the JSON property lastReadTime

Returns:

  • (String)


5452
5453
5454
# File 'lib/google/apis/chat_v1/classes.rb', line 5452

def last_read_time
  @last_read_time
end

#nameString

Resource name of the space read state. Format: users/user/spaces/space/ spaceReadState Corresponds to the JSON property name

Returns:

  • (String)


5458
5459
5460
# File 'lib/google/apis/chat_v1/classes.rb', line 5458

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5465
5466
5467
5468
# File 'lib/google/apis/chat_v1/classes.rb', line 5465

def update!(**args)
  @last_read_time = args[:last_read_time] if args.key?(:last_read_time)
  @name = args[:name] if args.key?(:name)
end