Class: GetStream::Generated::Models::ChatMessageResponse

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

Initialize with attributes



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 125

def initialize(attributes = {})
  super(attributes)
  @cid = attributes[:cid] || attributes['cid']
  @created_at = attributes[:created_at] || attributes['created_at']
  @deleted_reply_count = attributes[:deleted_reply_count] || attributes['deleted_reply_count']
  @html = attributes[:html] || attributes['html']
  @id = attributes[:id] || attributes['id']
  @mentioned_channel = attributes[:mentioned_channel] || attributes['mentioned_channel']
  @mentioned_here = attributes[:mentioned_here] || attributes['mentioned_here']
  @pinned = attributes[:pinned] || attributes['pinned']
  @reply_count = attributes[:reply_count] || attributes['reply_count']
  @shadowed = attributes[:shadowed] || attributes['shadowed']
  @silent = attributes[:silent] || attributes['silent']
  @text = attributes[:text] || attributes['text']
  @type = attributes[:type] || attributes['type']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @attachments = attributes[:attachments] || attributes['attachments']
  @latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions']
  @mentioned_users = attributes[:mentioned_users] || attributes['mentioned_users']
  @own_reactions = attributes[:own_reactions] || attributes['own_reactions']
  @restricted_visibility = attributes[:restricted_visibility] || attributes['restricted_visibility']
  @custom = attributes[:custom] || attributes['custom']
  @reaction_counts = attributes[:reaction_counts] || attributes['reaction_counts']
  @reaction_scores = attributes[:reaction_scores] || attributes['reaction_scores']
  @user = attributes[:user] || attributes['user']
  @command = attributes[:command] || attributes['command'] || nil
  @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
  @message_text_updated_at = attributes[:message_text_updated_at] || attributes['message_text_updated_at'] || nil
  @mml = attributes[:mml] || attributes['mml'] || nil
  @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
  @pin_expires = attributes[:pin_expires] || attributes['pin_expires'] || nil
  @pinned_at = attributes[:pinned_at] || attributes['pinned_at'] || nil
  @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil
  @quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil
  @show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil
  @i18n = attributes[:i18n] || attributes['i18n'] || nil
  @image_labels = attributes[:image_labels] || attributes['image_labels'] || nil
  @pinned_by = attributes[:pinned_by] || attributes['pinned_by'] || nil
  @quoted_message = attributes[:quoted_message] || attributes['quoted_message'] || nil
end

Instance Attribute Details

#attachmentsArray

Returns:

  • (Array)


56
57
58
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 56

def attachments
  @attachments
end

#cidString

Returns:

  • (String)


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

def cid
  @cid
end

#commandString

Returns:

  • (String)


83
84
85
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 83

def command
  @command
end

#created_atDateTime

Returns:

  • (DateTime)


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

def created_at
  @created_at
end

#customObject

Returns:

  • (Object)


71
72
73
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 71

def custom
  @custom
end

#deleted_atDateTime

Returns:

  • (DateTime)


86
87
88
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 86

def deleted_at
  @deleted_at
end

#deleted_reply_countInteger

Returns:

  • (Integer)


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

def deleted_reply_count
  @deleted_reply_count
end

#htmlString

Returns:

  • (String)


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

def html
  @html
end

#i18nHash<String, String>

Returns:

  • (Hash<String, String>)


113
114
115
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 113

def i18n
  @i18n
end

#idString

Returns:

  • (String)


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

def id
  @id
end

#image_labelsHash<String, Array<String>>

Returns:

  • (Hash<String, Array<String>>)


116
117
118
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 116

def image_labels
  @image_labels
end

#latest_reactionsArray

Returns:

  • (Array)


59
60
61
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 59

def latest_reactions
  @latest_reactions
end

#mentioned_channelBoolean

Returns:

  • (Boolean)


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

def mentioned_channel
  @mentioned_channel
end

#mentioned_hereBoolean

Returns:

  • (Boolean)


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

def mentioned_here
  @mentioned_here
end

#mentioned_usersArray<UserResponse>

Returns:



62
63
64
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 62

def mentioned_users
  @mentioned_users
end

#message_text_updated_atDateTime

Returns:

  • (DateTime)


89
90
91
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 89

def message_text_updated_at
  @message_text_updated_at
end

#mmlString

Returns:

  • (String)


92
93
94
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 92

def mml
  @mml
end

#own_reactionsArray

Returns:

  • (Array)


65
66
67
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 65

def own_reactions
  @own_reactions
end

#parent_idString

Returns:

  • (String)


95
96
97
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 95

def parent_id
  @parent_id
end

#pin_expiresDateTime

Returns:

  • (DateTime)


98
99
100
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 98

def pin_expires
  @pin_expires
end

#pinnedBoolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 35

def pinned
  @pinned
end

#pinned_atDateTime

Returns:

  • (DateTime)


101
102
103
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 101

def pinned_at
  @pinned_at
end

#pinned_byUserResponse

Returns:



119
120
121
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 119

def pinned_by
  @pinned_by
end

#poll_idString

Returns:

  • (String)


104
105
106
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 104

def poll_id
  @poll_id
end

#quoted_messageChatMessageResponse

Returns:



122
123
124
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 122

def quoted_message
  @quoted_message
end

#quoted_message_idString

Returns:

  • (String)


107
108
109
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 107

def quoted_message_id
  @quoted_message_id
end

#reaction_countsHash<String, Integer>

Returns:

  • (Hash<String, Integer>)


74
75
76
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 74

def reaction_counts
  @reaction_counts
end

#reaction_scoresHash<String, Integer>

Returns:

  • (Hash<String, Integer>)


77
78
79
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 77

def reaction_scores
  @reaction_scores
end

#reply_countInteger

Returns:

  • (Integer)


38
39
40
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 38

def reply_count
  @reply_count
end

#restricted_visibilityArray<String>

Returns:

  • (Array<String>)


68
69
70
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 68

def restricted_visibility
  @restricted_visibility
end

#shadowedBoolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 41

def shadowed
  @shadowed
end

#show_in_channelBoolean

Returns:

  • (Boolean)


110
111
112
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 110

def show_in_channel
  @show_in_channel
end

#silentBoolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 44

def silent
  @silent
end

#textString

Returns:

  • (String)


47
48
49
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 47

def text
  @text
end

#typeString

Returns:

  • (String)


50
51
52
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 50

def type
  @type
end

#updated_atDateTime

Returns:

  • (DateTime)


53
54
55
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 53

def updated_at
  @updated_at
end

#userUserResponse

Returns:



80
81
82
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 80

def user
  @user
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# File 'lib/getstream_ruby/generated/models/chat_message_response.rb', line 167

def self.json_field_mappings
  {
    cid: 'cid',
    created_at: 'created_at',
    deleted_reply_count: 'deleted_reply_count',
    html: 'html',
    id: 'id',
    mentioned_channel: 'mentioned_channel',
    mentioned_here: 'mentioned_here',
    pinned: 'pinned',
    reply_count: 'reply_count',
    shadowed: 'shadowed',
    silent: 'silent',
    text: 'text',
    type: 'type',
    updated_at: 'updated_at',
    attachments: 'attachments',
    latest_reactions: 'latest_reactions',
    mentioned_users: 'mentioned_users',
    own_reactions: 'own_reactions',
    restricted_visibility: 'restricted_visibility',
    custom: 'custom',
    reaction_counts: 'reaction_counts',
    reaction_scores: 'reaction_scores',
    user: 'user',
    command: 'command',
    deleted_at: 'deleted_at',
    message_text_updated_at: 'message_text_updated_at',
    mml: 'mml',
    parent_id: 'parent_id',
    pin_expires: 'pin_expires',
    pinned_at: 'pinned_at',
    poll_id: 'poll_id',
    quoted_message_id: 'quoted_message_id',
    show_in_channel: 'show_in_channel',
    i18n: 'i18n',
    image_labels: 'image_labels',
    pinned_by: 'pinned_by',
    quoted_message: 'quoted_message'
  }
end