Class: GetStream::Generated::Models::ChannelGetOrCreateRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ChannelGetOrCreateRequest
- Defined in:
- lib/getstream_ruby/generated/models/channel_get_or_create_request.rb
Instance Attribute Summary collapse
- #data ⇒ ChannelInput
-
#hide_for_creator ⇒ Boolean
Whether this channel will be hidden for the user who created the channel or not.
- #members ⇒ PaginationParams
- #messages ⇒ MessagePaginationParams
-
#state ⇒ Boolean
Refresh channel state.
- #thread_unread_counts ⇒ Boolean
- #watchers ⇒ PaginationParams
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ChannelGetOrCreateRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ChannelGetOrCreateRequest
Initialize with attributes
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 35 def initialize(attributes = {}) super(attributes) @hide_for_creator = attributes[:hide_for_creator] || attributes['hide_for_creator'] || nil @state = attributes[:state] || attributes['state'] || nil @thread_unread_counts = attributes[:thread_unread_counts] || attributes['thread_unread_counts'] || nil @data = attributes[:data] || attributes['data'] || nil @members = attributes[:members] || attributes['members'] || nil @messages = attributes[:messages] || attributes['messages'] || nil @watchers = attributes[:watchers] || attributes['watchers'] || nil end |
Instance Attribute Details
#data ⇒ ChannelInput
23 24 25 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 23 def data @data end |
#hide_for_creator ⇒ Boolean
Returns Whether this channel will be hidden for the user who created the channel or not.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 14 def hide_for_creator @hide_for_creator end |
#members ⇒ PaginationParams
26 27 28 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 26 def members @members end |
#messages ⇒ MessagePaginationParams
29 30 31 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 29 def @messages end |
#state ⇒ Boolean
Returns Refresh channel state.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 17 def state @state end |
#thread_unread_counts ⇒ Boolean
20 21 22 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 20 def thread_unread_counts @thread_unread_counts end |
#watchers ⇒ PaginationParams
32 33 34 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 32 def watchers @watchers end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/getstream_ruby/generated/models/channel_get_or_create_request.rb', line 47 def self.json_field_mappings { hide_for_creator: 'hide_for_creator', state: 'state', thread_unread_counts: 'thread_unread_counts', data: 'data', members: 'members', messages: 'messages', watchers: 'watchers' } end |