Class: GetStream::Generated::Models::ChannelTypeConfig
- Defined in:
- lib/getstream_ruby/generated/models/channel_type_config.rb
Instance Attribute Summary collapse
- #allowed_flag_reasons ⇒ Array<String>
- #automod ⇒ String
- #automod_behavior ⇒ String
- #automod_thresholds ⇒ Thresholds
- #blocklist ⇒ String
- #blocklist_behavior ⇒ String
- #blocklists ⇒ Array<BlockListOptions>
- #commands ⇒ Array<Command>
- #connect_events ⇒ Boolean
- #count_messages ⇒ Boolean
- #created_at ⇒ DateTime
- #custom_events ⇒ Boolean
- #delivery_events ⇒ Boolean
- #grants ⇒ Hash<String, Array<String>>
- #mark_messages_pending ⇒ Boolean
- #max_message_length ⇒ Integer
- #mutes ⇒ Boolean
- #name ⇒ String
- #partition_size ⇒ Integer
- #partition_ttl ⇒ String
- #permissions ⇒ Array<PolicyRequest>
- #polls ⇒ Boolean
- #push_notifications ⇒ Boolean
- #quotes ⇒ Boolean
- #reactions ⇒ Boolean
- #read_events ⇒ Boolean
- #reminders ⇒ Boolean
- #replies ⇒ Boolean
- #search ⇒ Boolean
- #shared_locations ⇒ Boolean
- #skip_last_msg_update_for_system_msgs ⇒ Boolean
- #typing_events ⇒ Boolean
- #updated_at ⇒ DateTime
- #uploads ⇒ Boolean
- #url_enrichment ⇒ Boolean
- #user_message_reminders ⇒ Boolean
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ChannelTypeConfig
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ChannelTypeConfig
Initialize with attributes
122 123 124 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 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 122 def initialize(attributes = {}) super(attributes) @automod = attributes[:automod] || attributes['automod'] @automod_behavior = attributes[:automod_behavior] || attributes['automod_behavior'] @connect_events = attributes[:connect_events] || attributes['connect_events'] @count_messages = attributes[:count_messages] || attributes['count_messages'] @created_at = attributes[:created_at] || attributes['created_at'] @custom_events = attributes[:custom_events] || attributes['custom_events'] @delivery_events = attributes[:delivery_events] || attributes['delivery_events'] @mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending'] @max_message_length = attributes[:max_message_length] || attributes['max_message_length'] @mutes = attributes[:mutes] || attributes['mutes'] @name = attributes[:name] || attributes['name'] @polls = attributes[:polls] || attributes['polls'] @push_notifications = attributes[:push_notifications] || attributes['push_notifications'] @quotes = attributes[:quotes] || attributes['quotes'] @reactions = attributes[:reactions] || attributes['reactions'] @read_events = attributes[:read_events] || attributes['read_events'] @reminders = attributes[:reminders] || attributes['reminders'] @replies = attributes[:replies] || attributes['replies'] @search = attributes[:search] || attributes['search'] @shared_locations = attributes[:shared_locations] || attributes['shared_locations'] @skip_last_msg_update_for_system_msgs = attributes[:skip_last_msg_update_for_system_msgs] || attributes['skip_last_msg_update_for_system_msgs'] @typing_events = attributes[:typing_events] || attributes['typing_events'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @uploads = attributes[:uploads] || attributes['uploads'] @url_enrichment = attributes[:url_enrichment] || attributes['url_enrichment'] @user_message_reminders = attributes[:user_message_reminders] || attributes['user_message_reminders'] @commands = attributes[:commands] || attributes['commands'] @permissions = attributes[:permissions] || attributes['permissions'] @grants = attributes[:grants] || attributes['grants'] @blocklist = attributes[:blocklist] || attributes['blocklist'] || nil @blocklist_behavior = attributes[:blocklist_behavior] || attributes['blocklist_behavior'] || nil @partition_size = attributes[:partition_size] || attributes['partition_size'] || nil @partition_ttl = attributes[:partition_ttl] || attributes['partition_ttl'] || nil @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil end |
Instance Attribute Details
#allowed_flag_reasons ⇒ Array<String>
113 114 115 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 113 def allowed_flag_reasons @allowed_flag_reasons end |
#automod ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 14 def automod @automod end |
#automod_behavior ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 17 def automod_behavior @automod_behavior end |
#automod_thresholds ⇒ Thresholds
119 120 121 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 119 def automod_thresholds @automod_thresholds end |
#blocklist ⇒ String
101 102 103 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 101 def blocklist @blocklist end |
#blocklist_behavior ⇒ String
104 105 106 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 104 def blocklist_behavior @blocklist_behavior end |
#blocklists ⇒ Array<BlockListOptions>
116 117 118 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 116 def blocklists @blocklists end |
#commands ⇒ Array<Command>
92 93 94 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 92 def commands @commands end |
#connect_events ⇒ Boolean
20 21 22 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 20 def connect_events @connect_events end |
#count_messages ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 23 def @count_messages end |
#created_at ⇒ DateTime
26 27 28 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 26 def created_at @created_at end |
#custom_events ⇒ Boolean
29 30 31 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 29 def custom_events @custom_events end |
#delivery_events ⇒ Boolean
32 33 34 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 32 def delivery_events @delivery_events end |
#grants ⇒ Hash<String, Array<String>>
98 99 100 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 98 def grants @grants end |
#mark_messages_pending ⇒ Boolean
35 36 37 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 35 def @mark_messages_pending end |
#max_message_length ⇒ Integer
38 39 40 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 38 def @max_message_length end |
#mutes ⇒ Boolean
41 42 43 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 41 def mutes @mutes end |
#name ⇒ String
44 45 46 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 44 def name @name end |
#partition_size ⇒ Integer
107 108 109 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 107 def partition_size @partition_size end |
#partition_ttl ⇒ String
110 111 112 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 110 def partition_ttl @partition_ttl end |
#permissions ⇒ Array<PolicyRequest>
95 96 97 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 95 def @permissions end |
#polls ⇒ Boolean
47 48 49 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 47 def polls @polls end |
#push_notifications ⇒ Boolean
50 51 52 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 50 def push_notifications @push_notifications end |
#quotes ⇒ Boolean
53 54 55 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 53 def quotes @quotes end |
#reactions ⇒ Boolean
56 57 58 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 56 def reactions @reactions end |
#read_events ⇒ Boolean
59 60 61 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 59 def read_events @read_events end |
#reminders ⇒ Boolean
62 63 64 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 62 def reminders @reminders end |
#replies ⇒ Boolean
65 66 67 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 65 def replies @replies end |
#search ⇒ Boolean
68 69 70 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 68 def search @search end |
#shared_locations ⇒ Boolean
71 72 73 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 71 def shared_locations @shared_locations end |
#skip_last_msg_update_for_system_msgs ⇒ Boolean
74 75 76 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 74 def skip_last_msg_update_for_system_msgs @skip_last_msg_update_for_system_msgs end |
#typing_events ⇒ Boolean
77 78 79 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 77 def typing_events @typing_events end |
#updated_at ⇒ DateTime
80 81 82 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 80 def updated_at @updated_at end |
#uploads ⇒ Boolean
83 84 85 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 83 def uploads @uploads end |
#url_enrichment ⇒ Boolean
86 87 88 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 86 def url_enrichment @url_enrichment end |
#user_message_reminders ⇒ Boolean
89 90 91 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 89 def @user_message_reminders end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
163 164 165 166 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 |
# File 'lib/getstream_ruby/generated/models/channel_type_config.rb', line 163 def self.json_field_mappings { automod: 'automod', automod_behavior: 'automod_behavior', connect_events: 'connect_events', count_messages: 'count_messages', created_at: 'created_at', custom_events: 'custom_events', delivery_events: 'delivery_events', mark_messages_pending: 'mark_messages_pending', max_message_length: 'max_message_length', mutes: 'mutes', name: 'name', polls: 'polls', push_notifications: 'push_notifications', quotes: 'quotes', reactions: 'reactions', read_events: 'read_events', reminders: 'reminders', replies: 'replies', search: 'search', shared_locations: 'shared_locations', skip_last_msg_update_for_system_msgs: 'skip_last_msg_update_for_system_msgs', typing_events: 'typing_events', updated_at: 'updated_at', uploads: 'uploads', url_enrichment: 'url_enrichment', user_message_reminders: 'user_message_reminders', commands: 'commands', permissions: 'permissions', grants: 'grants', blocklist: 'blocklist', blocklist_behavior: 'blocklist_behavior', partition_size: 'partition_size', partition_ttl: 'partition_ttl', allowed_flag_reasons: 'allowed_flag_reasons', blocklists: 'blocklists', automod_thresholds: 'automod_thresholds' } end |