Class: GetStream::Generated::Models::ScheduledMessageContentResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ScheduledMessageContentResponse
- Defined in:
- lib/getstream_ruby/generated/models/scheduled_message_content_response.rb
Overview
The message a scheduled message will send
Instance Attribute Summary collapse
-
#attachments ⇒ Array<Attachment>
Array of message attachments.
- #custom ⇒ Object
-
#html ⇒ String
Contains HTML markup of the message.
-
#mentioned_channel ⇒ Boolean
Whether the message mentions the whole channel.
-
#mentioned_group_ids ⇒ Array<String>
IDs of the user groups mentioned in the message.
-
#mentioned_here ⇒ Boolean
Whether the message mentions the online channel members.
-
#mentioned_roles ⇒ Array<String>
Roles mentioned in the message.
-
#mentioned_users ⇒ Array<String>
IDs of the users mentioned in the message.
-
#mml ⇒ String
MML content of the message.
-
#parent_id ⇒ String
ID of parent message (thread).
-
#pin_expires ⇒ DateTime
Date/time the pin expires.
-
#pinned ⇒ Boolean
Whether the message will be pinned when sent.
-
#poll_id ⇒ String
Identifier of the poll to include in the message.
-
#quoted_message ⇒ MessageResponse
Represents any chat message.
- #quoted_message_id ⇒ String
-
#restricted_visibility ⇒ Array<String>
IDs of the users the message will be visible to.
-
#shared_location ⇒ ScheduledMessageLocation
The location a scheduled message will share.
-
#show_in_channel ⇒ Boolean
Whether thread reply should be shown in the channel as well.
-
#silent ⇒ Boolean
Whether message is silent or not.
-
#text ⇒ String
Text of the message.
-
#type ⇒ String
Contains type of the message.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ScheduledMessageContentResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ScheduledMessageContentResponse
Initialize with attributes
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 77 def initialize(attributes = {}) super(attributes) @text = attributes.fetch(:text) { attributes.fetch('text', nil) } @custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) } @html = attributes.fetch(:html) { attributes.fetch('html', nil) } @mentioned_channel = attributes.fetch(:mentioned_channel) { attributes.fetch('mentioned_channel', nil) } @mentioned_here = attributes.fetch(:mentioned_here) { attributes.fetch('mentioned_here', nil) } @mml = attributes.fetch(:mml) { attributes.fetch('mml', nil) } @parent_id = attributes.fetch(:parent_id) { attributes.fetch('parent_id', nil) } @pin_expires = attributes.fetch(:pin_expires) { attributes.fetch('pin_expires', nil) } @pinned = attributes.fetch(:pinned) { attributes.fetch('pinned', nil) } @poll_id = attributes.fetch(:poll_id) { attributes.fetch('poll_id', nil) } @quoted_message_id = attributes.fetch(:quoted_message_id) { attributes.fetch('quoted_message_id', nil) } @show_in_channel = attributes.fetch(:show_in_channel) { attributes.fetch('show_in_channel', nil) } @silent = attributes.fetch(:silent) { attributes.fetch('silent', nil) } @type = attributes.fetch(:type) { attributes.fetch('type', nil) } @attachments = attributes.fetch(:attachments) { attributes.fetch('attachments', nil) } @mentioned_group_ids = attributes.fetch(:mentioned_group_ids) { attributes.fetch('mentioned_group_ids', nil) } @mentioned_roles = attributes.fetch(:mentioned_roles) { attributes.fetch('mentioned_roles', nil) } @mentioned_users = attributes.fetch(:mentioned_users) { attributes.fetch('mentioned_users', nil) } @restricted_visibility = attributes.fetch(:restricted_visibility) { attributes.fetch('restricted_visibility', nil) } @quoted_message = attributes.fetch(:quoted_message) { attributes.fetch('quoted_message', nil) } @shared_location = attributes.fetch(:shared_location) { attributes.fetch('shared_location', nil) } end |
Instance Attribute Details
#attachments ⇒ Array<Attachment>
Returns Array of message attachments.
56 57 58 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 56 def @attachments end |
#custom ⇒ Object
17 18 19 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 17 def custom @custom end |
#html ⇒ String
Returns Contains HTML markup of the message.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 20 def html @html end |
#mentioned_channel ⇒ Boolean
Returns Whether the message mentions the whole channel.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 23 def mentioned_channel @mentioned_channel end |
#mentioned_group_ids ⇒ Array<String>
Returns IDs of the user groups mentioned in the message.
59 60 61 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 59 def mentioned_group_ids @mentioned_group_ids end |
#mentioned_here ⇒ Boolean
Returns Whether the message mentions the online channel members.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 26 def mentioned_here @mentioned_here end |
#mentioned_roles ⇒ Array<String>
Returns Roles mentioned in the message.
62 63 64 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 62 def mentioned_roles @mentioned_roles end |
#mentioned_users ⇒ Array<String>
Returns IDs of the users mentioned in the message.
65 66 67 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 65 def mentioned_users @mentioned_users end |
#mml ⇒ String
Returns MML content of the message.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 29 def mml @mml end |
#parent_id ⇒ String
Returns ID of parent message (thread).
32 33 34 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 32 def parent_id @parent_id end |
#pin_expires ⇒ DateTime
Returns Date/time the pin expires.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 35 def pin_expires @pin_expires end |
#pinned ⇒ Boolean
Returns Whether the message will be pinned when sent.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 38 def pinned @pinned end |
#poll_id ⇒ String
Returns Identifier of the poll to include in the message.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 41 def poll_id @poll_id end |
#quoted_message ⇒ MessageResponse
Returns Represents any chat message.
71 72 73 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 71 def @quoted_message end |
#quoted_message_id ⇒ String
44 45 46 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 44 def @quoted_message_id end |
#restricted_visibility ⇒ Array<String>
Returns IDs of the users the message will be visible to.
68 69 70 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 68 def restricted_visibility @restricted_visibility end |
#shared_location ⇒ ScheduledMessageLocation
Returns The location a scheduled message will share.
74 75 76 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 74 def shared_location @shared_location end |
#show_in_channel ⇒ Boolean
Returns Whether thread reply should be shown in the channel as well.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 47 def show_in_channel @show_in_channel end |
#silent ⇒ Boolean
Returns Whether message is silent or not.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 50 def silent @silent end |
#text ⇒ String
Returns Text of the message.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 14 def text @text end |
#type ⇒ String
Returns Contains type of the message. One of: regular, system.
53 54 55 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 53 def type @type end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_content_response.rb', line 103 def self.json_field_mappings { text: 'text', custom: 'custom', html: 'html', mentioned_channel: 'mentioned_channel', mentioned_here: 'mentioned_here', mml: 'mml', parent_id: 'parent_id', pin_expires: 'pin_expires', pinned: 'pinned', poll_id: 'poll_id', quoted_message_id: 'quoted_message_id', show_in_channel: 'show_in_channel', silent: 'silent', type: 'type', attachments: 'attachments', mentioned_group_ids: 'mentioned_group_ids', mentioned_roles: 'mentioned_roles', mentioned_users: 'mentioned_users', restricted_visibility: 'restricted_visibility', quoted_message: 'quoted_message', shared_location: 'shared_location' } end |