Class: GetStream::Generated::Models::ChannelConfigOverrides

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/channel_config_overrides.rb

Overview

Channel configuration overrides

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 = {}) ⇒ ChannelConfigOverrides

Initialize with attributes



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 65

def initialize(attributes = {})
  super(attributes)
  @blocklist = attributes.fetch(:blocklist) { attributes.fetch('blocklist', nil) }
  @blocklist_behavior = attributes.fetch(:blocklist_behavior) { attributes.fetch('blocklist_behavior', nil) }
  @count_messages = attributes.fetch(:count_messages) { attributes.fetch('count_messages', nil) }
  @max_message_length = attributes.fetch(:max_message_length) { attributes.fetch('max_message_length', nil) }
  @push_level = attributes.fetch(:push_level) { attributes.fetch('push_level', nil) }
  @quotes = attributes.fetch(:quotes) { attributes.fetch('quotes', nil) }
  @reactions = attributes.fetch(:reactions) { attributes.fetch('reactions', nil) }
  @replies = attributes.fetch(:replies) { attributes.fetch('replies', nil) }
  @shared_locations = attributes.fetch(:shared_locations) { attributes.fetch('shared_locations', nil) }
  @typing_events = attributes.fetch(:typing_events) { attributes.fetch('typing_events', nil) }
  @uploads = attributes.fetch(:uploads) { attributes.fetch('uploads', nil) }
  @url_enrichment = attributes.fetch(:url_enrichment) { attributes.fetch('url_enrichment', nil) }
  @user_message_reminders = attributes.fetch(:user_message_reminders) { attributes.fetch('user_message_reminders', nil) }
  @voice_transcription = attributes.fetch(:voice_transcription) { attributes.fetch('voice_transcription', nil) }
  @commands = attributes.fetch(:commands) { attributes.fetch('commands', nil) }
  @chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
  @grants = attributes.fetch(:grants) { attributes.fetch('grants', nil) }
end

Instance Attribute Details

#blocklist ⇒ String

Returns:

  • (String)


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

def blocklist
  @blocklist
end

#blocklist_behavior ⇒ BlocklistBehavior

Returns What a blocklist does when it matches. shadow_block is not accepted on a channel override.

Returns:

  • (BlocklistBehavior) —

    What a blocklist does when it matches. shadow_block is not accepted on a channel override.



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

def blocklist_behavior
  @blocklist_behavior
end

#chat_preferences ⇒ ChatPreferences

Returns:



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

def chat_preferences
  @chat_preferences
end

#commands ⇒ Array<String>

Returns List of commands that channel supports.

Returns:

  • (Array<String>) —

    List of commands that channel supports



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

def commands
  @commands
end

#count_messages ⇒ Boolean

Returns Enable/disable message counting.

Returns:

  • (Boolean) —

    Enable/disable message counting



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

def count_messages
  @count_messages
end

#grants ⇒ Hash<String, Array<String>>

Returns:

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


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

def grants
  @grants
end

#max_message_length ⇒ Integer

Returns Overrides max message length.

Returns:

  • (Integer) —

    Overrides max message length



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

def max_message_length
  @max_message_length
end

#push_level ⇒ PushLevel

Returns Overrides the push notification level for this channel.

Returns:

  • (PushLevel) —

    Overrides the push notification level for this channel



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

def push_level
  @push_level
end

#quotes ⇒ Boolean

Returns Enables message quotes.

Returns:

  • (Boolean) —

    Enables message quotes



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

def quotes
  @quotes
end

#reactions ⇒ Boolean

Returns Enables or disables reactions.

Returns:

  • (Boolean) —

    Enables or disables reactions



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

def reactions
  @reactions
end

#replies ⇒ Boolean

Returns Enables message replies (threads).

Returns:

  • (Boolean) —

    Enables message replies (threads)



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

def replies
  @replies
end

#shared_locations ⇒ Boolean

Returns Enable/disable shared locations.

Returns:

  • (Boolean) —

    Enable/disable shared locations



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

def shared_locations
  @shared_locations
end

#typing_events ⇒ Boolean

Returns Enables or disables typing events.

Returns:

  • (Boolean) —

    Enables or disables typing events



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

def typing_events
  @typing_events
end

#uploads ⇒ Boolean

Returns Enables or disables file uploads.

Returns:

  • (Boolean) —

    Enables or disables file uploads



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

def uploads
  @uploads
end

#url_enrichment ⇒ Boolean

Returns Enables or disables URL enrichment.

Returns:

  • (Boolean) —

    Enables or disables URL enrichment



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

def url_enrichment
  @url_enrichment
end

#user_message_reminders ⇒ Boolean

Returns Enable/disable user message reminders.

Returns:

  • (Boolean) —

    Enable/disable user message reminders



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

def user_message_reminders
  @user_message_reminders
end

#voice_transcription ⇒ Boolean

Returns Enables or disables transcription of voice recordings.

Returns:

  • (Boolean) —

    Enables or disables transcription of voice recordings



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

def voice_transcription
  @voice_transcription
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 87

def self.json_field_mappings
  {
    blocklist: 'blocklist',
    blocklist_behavior: 'blocklist_behavior',
    count_messages: 'count_messages',
    max_message_length: 'max_message_length',
    push_level: 'push_level',
    quotes: 'quotes',
    reactions: 'reactions',
    replies: 'replies',
    shared_locations: 'shared_locations',
    typing_events: 'typing_events',
    uploads: 'uploads',
    url_enrichment: 'url_enrichment',
    user_message_reminders: 'user_message_reminders',
    voice_transcription: 'voice_transcription',
    commands: 'commands',
    chat_preferences: 'chat_preferences',
    grants: 'grants'
  }
end