Class: GetStream::Generated::Models::MarkUnreadRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/mark_unread_request.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ MarkUnreadRequest

Initialize with attributes



29
30
31
32
33
34
35
36
# File 'lib/getstream_ruby/generated/models/mark_unread_request.rb', line 29

def initialize(attributes = {})
  super(attributes)
  @message_id = attributes[:message_id] || attributes['message_id'] || nil
  @message_timestamp = attributes[:message_timestamp] || attributes['message_timestamp'] || nil
  @thread_id = attributes[:thread_id] || attributes['thread_id'] || nil
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
  @user = attributes[:user] || attributes['user'] || nil
end

Instance Attribute Details

#message_idString

Returns ID of the message from where the channel is marked unread.

Returns:

  • (String)

    ID of the message from where the channel is marked unread



14
15
16
# File 'lib/getstream_ruby/generated/models/mark_unread_request.rb', line 14

def message_id
  @message_id
end

#message_timestampDateTime

Returns Timestamp of the message from where the channel is marked unread.

Returns:

  • (DateTime)

    Timestamp of the message from where the channel is marked unread



17
18
19
# File 'lib/getstream_ruby/generated/models/mark_unread_request.rb', line 17

def message_timestamp
  @message_timestamp
end

#thread_idString

Returns Mark a thread unread, specify one of the thread, message timestamp, or message id.

Returns:

  • (String)

    Mark a thread unread, specify one of the thread, message timestamp, or message id



20
21
22
# File 'lib/getstream_ruby/generated/models/mark_unread_request.rb', line 20

def thread_id
  @thread_id
end

#userUserRequest

Returns:



26
27
28
# File 'lib/getstream_ruby/generated/models/mark_unread_request.rb', line 26

def user
  @user
end

#user_idString

Returns:

  • (String)


23
24
25
# File 'lib/getstream_ruby/generated/models/mark_unread_request.rb', line 23

def user_id
  @user_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



39
40
41
42
43
44
45
46
47
# File 'lib/getstream_ruby/generated/models/mark_unread_request.rb', line 39

def self.json_field_mappings
  {
    message_id: 'message_id',
    message_timestamp: 'message_timestamp',
    thread_id: 'thread_id',
    user_id: 'user_id',
    user: 'user'
  }
end