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