Class: GetStream::Generated::Models::MarkActivityRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/mark_activity_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 = {}) ⇒ MarkActivityRequest

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @mark_all_read = attributes[:mark_all_read] || attributes['mark_all_read'] || nil
  @mark_all_seen = attributes[:mark_all_seen] || attributes['mark_all_seen'] || nil
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
  @mark_read = attributes[:mark_read] || attributes['mark_read'] || nil
  @mark_seen = attributes[:mark_seen] || attributes['mark_seen'] || nil
  @mark_watched = attributes[:mark_watched] || attributes['mark_watched'] || nil
  @user = attributes[:user] || attributes['user'] || nil
end

Instance Attribute Details

#mark_all_readBoolean



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

def mark_all_read
  @mark_all_read
end

#mark_all_seenBoolean



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

def mark_all_seen
  @mark_all_seen
end

#mark_readArray<String>



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

def mark_read
  @mark_read
end

#mark_seenArray<String>



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

def mark_seen
  @mark_seen
end

#mark_watchedArray<String>



29
30
31
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 29

def mark_watched
  @mark_watched
end

#userUserRequest



32
33
34
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 32

def user
  @user
end

#user_idString



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

def user_id
  @user_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 47

def self.json_field_mappings
  {
    mark_all_read: 'mark_all_read',
    mark_all_seen: 'mark_all_seen',
    user_id: 'user_id',
    mark_read: 'mark_read',
    mark_seen: 'mark_seen',
    mark_watched: 'mark_watched',
    user: 'user'
  }
end