Class: GetStream::Generated::Models::ThreadResponse
- Defined in:
- lib/getstream_ruby/generated/models/thread_response.rb
Instance Attribute Summary collapse
-
#active_participant_count ⇒ Integer
Active Participant Count.
- #channel ⇒ ChannelResponse
-
#channel_cid ⇒ String
Channel CID.
-
#created_at ⇒ DateTime
Date/time of creation.
- #created_by ⇒ UserResponse
-
#created_by_user_id ⇒ String
Created By User ID.
-
#custom ⇒ Object
Custom data for this object.
-
#deleted_at ⇒ DateTime
Deleted At.
-
#last_message_at ⇒ DateTime
Last Message At.
- #parent_message ⇒ MessageResponse
-
#parent_message_id ⇒ String
Parent Message ID.
-
#participant_count ⇒ Integer
Participant Count.
-
#reply_count ⇒ Integer
Reply Count.
-
#thread_participants ⇒ Array<ThreadParticipant>
Thread Participants.
-
#title ⇒ String
Title.
-
#updated_at ⇒ DateTime
Date/time of the last update.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ThreadResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ThreadResponse
Initialize with attributes
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 62 def initialize(attributes = {}) super(attributes) @active_participant_count = attributes[:active_participant_count] || attributes['active_participant_count'] @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] @created_at = attributes[:created_at] || attributes['created_at'] @created_by_user_id = attributes[:created_by_user_id] || attributes['created_by_user_id'] = attributes[:parent_message_id] || attributes['parent_message_id'] @participant_count = attributes[:participant_count] || attributes['participant_count'] @title = attributes[:title] || attributes['title'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @custom = attributes[:custom] || attributes['custom'] @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil = attributes[:last_message_at] || attributes['last_message_at'] || nil @reply_count = attributes[:reply_count] || attributes['reply_count'] || nil @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil @channel = attributes[:channel] || attributes['channel'] || nil @created_by = attributes[:created_by] || attributes['created_by'] || nil = attributes[:parent_message] || attributes['parent_message'] || nil end |
Instance Attribute Details
#active_participant_count ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 14 def active_participant_count @active_participant_count end |
#channel ⇒ ChannelResponse
53 54 55 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 53 def channel @channel end |
#channel_cid ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 17 def channel_cid @channel_cid end |
#created_at ⇒ DateTime
20 21 22 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 20 def created_at @created_at end |
#created_by ⇒ UserResponse
56 57 58 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 56 def created_by @created_by end |
#created_by_user_id ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 23 def created_by_user_id @created_by_user_id end |
#custom ⇒ Object
38 39 40 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 38 def custom @custom end |
#deleted_at ⇒ DateTime
41 42 43 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 41 def deleted_at @deleted_at end |
#last_message_at ⇒ DateTime
44 45 46 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 44 def end |
#parent_message ⇒ MessageResponse
59 60 61 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 59 def end |
#parent_message_id ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 26 def end |
#participant_count ⇒ Integer
29 30 31 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 29 def participant_count @participant_count end |
#reply_count ⇒ Integer
47 48 49 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 47 def reply_count @reply_count end |
#thread_participants ⇒ Array<ThreadParticipant>
50 51 52 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 50 def thread_participants @thread_participants end |
#title ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 32 def title @title end |
#updated_at ⇒ DateTime
35 36 37 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 35 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/getstream_ruby/generated/models/thread_response.rb', line 83 def self.json_field_mappings { active_participant_count: 'active_participant_count', channel_cid: 'channel_cid', created_at: 'created_at', created_by_user_id: 'created_by_user_id', parent_message_id: 'parent_message_id', participant_count: 'participant_count', title: 'title', updated_at: 'updated_at', custom: 'custom', deleted_at: 'deleted_at', last_message_at: 'last_message_at', reply_count: 'reply_count', thread_participants: 'thread_participants', channel: 'channel', created_by: 'created_by', parent_message: 'parent_message' } end |