Class: GetStream::Generated::Models::AddReactionResponse
- Defined in:
- lib/getstream_ruby/generated/models/add_reaction_response.rb
Instance Attribute Summary collapse
- #activity ⇒ ActivityResponse
- #duration ⇒ String
-
#notification_accepted ⇒ Boolean
Whether notification creation was accepted for asynchronous processing.
-
#notification_created ⇒ Object
deprecated
Deprecated.
This field is deprecated. @return [Boolean] Deprecated. Mirrors notification_accepted; use notification_accepted for async enqueue status Deprecated: use notification_accepted
-
#notification_task_id ⇒ String
ID of the async notification-creation task; poll GET /tasks/id for its status.
- #reaction ⇒ FeedsReactionResponse
- #reference_activity ⇒ ActivityResponse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AddReactionResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ AddReactionResponse
Initialize with attributes
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 36 def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @activity = attributes[:activity] || attributes['activity'] @reaction = attributes[:reaction] || attributes['reaction'] @notification_accepted = attributes[:notification_accepted] || attributes['notification_accepted'] || nil @notification_created = attributes[:notification_created] || attributes['notification_created'] || nil @notification_task_id = attributes[:notification_task_id] || attributes['notification_task_id'] || nil @reference_activity = attributes[:reference_activity] || attributes['reference_activity'] || nil end |
Instance Attribute Details
#activity ⇒ ActivityResponse
17 18 19 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 17 def activity @activity end |
#duration ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 14 def duration @duration end |
#notification_accepted ⇒ Boolean
Returns Whether notification creation was accepted for asynchronous processing.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 23 def notification_accepted @notification_accepted end |
#notification_created ⇒ Object
This field is deprecated. @return [Boolean] Deprecated. Mirrors notification_accepted; use notification_accepted for async enqueue status Deprecated: use notification_accepted
27 28 29 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 27 def notification_created @notification_created end |
#notification_task_id ⇒ String
Returns ID of the async notification-creation task; poll GET /tasks/id for its status.
30 31 32 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 30 def notification_task_id @notification_task_id end |
#reaction ⇒ FeedsReactionResponse
20 21 22 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 20 def reaction @reaction end |
#reference_activity ⇒ ActivityResponse
33 34 35 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 33 def reference_activity @reference_activity end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/getstream_ruby/generated/models/add_reaction_response.rb', line 48 def self.json_field_mappings { duration: 'duration', activity: 'activity', reaction: 'reaction', notification_accepted: 'notification_accepted', notification_created: 'notification_created', notification_task_id: 'notification_task_id', reference_activity: 'reference_activity' } end |