Class: GetStream::Generated::Models::MarkActivityRequest
- Defined in:
- lib/getstream_ruby/generated/models/mark_activity_request.rb
Instance Attribute Summary collapse
-
#mark_all_read ⇒ Boolean
Whether to mark all activities as read.
-
#mark_all_seen ⇒ Boolean
Whether to mark all activities as seen.
-
#mark_read ⇒ Array<String>
List of activity IDs to mark as read.
-
#mark_seen ⇒ Array<String>
List of activity IDs to mark as seen.
-
#mark_watched ⇒ Array<String>
List of activity IDs to mark as watched (for stories).
- #user ⇒ UserRequest
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MarkActivityRequest
constructor
Initialize with attributes.
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_read ⇒ Boolean
Returns Whether to mark all activities as read.
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_seen ⇒ Boolean
Returns Whether to mark all activities as seen.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 17 def mark_all_seen @mark_all_seen end |
#mark_read ⇒ Array<String>
Returns List of activity IDs to mark as read.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 23 def mark_read @mark_read end |
#mark_seen ⇒ Array<String>
Returns List of activity IDs to mark as seen.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 26 def mark_seen @mark_seen end |
#mark_watched ⇒ Array<String>
Returns List of activity IDs to mark as watched (for stories).
29 30 31 |
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 29 def mark_watched @mark_watched end |
#user ⇒ UserRequest
32 33 34 |
# File 'lib/getstream_ruby/generated/models/mark_activity_request.rb', line 32 def user @user end |
#user_id ⇒ String
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_mappings ⇒ Object
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 |