Class: GetStream::Generated::Models::UpdateChannelRequest
- Defined in:
- lib/getstream_ruby/generated/models/update_channel_request.rb
Instance Attribute Summary collapse
-
#accept_invite ⇒ Boolean
Set to
trueto accept the invite. -
#add_filter_tags ⇒ Array<String>
List of filter tags to add to the channel.
-
#add_members ⇒ Array<ChannelMemberRequest>
List of user IDs to add to the channel.
-
#add_moderators ⇒ Array<String>
List of user IDs to make channel moderators.
-
#assign_roles ⇒ Array<ChannelMemberRequest>
List of channel member role assignments.
-
#cooldown ⇒ Integer
Sets cool down period for the channel in seconds.
- #data ⇒ ChannelInputRequest
-
#demote_moderators ⇒ Array<String>
List of user IDs to take away moderators status from.
-
#hide_history ⇒ Boolean
Set to
trueto hide channel's history when adding new members. -
#hide_history_before ⇒ DateTime
If set, hides channel's history before this time when adding new members.
-
#invites ⇒ Array<ChannelMemberRequest>
List of user IDs to invite to the channel.
-
#message ⇒ MessageRequest
Message data for creating or updating a message.
-
#reject_invite ⇒ Boolean
Set to
trueto reject the invite. -
#remove_filter_tags ⇒ Array<String>
List of filter tags to remove from the channel.
-
#remove_members ⇒ Array<String>
List of user IDs to remove from the channel.
-
#skip_push ⇒ Boolean
When
messageis set disables all push notifications for it. -
#user ⇒ UserRequest
User request object.
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UpdateChannelRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UpdateChannelRequest
Initialize with attributes
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 68 def initialize(attributes = {}) super(attributes) @accept_invite = attributes.fetch(:accept_invite) { attributes.fetch('accept_invite', nil) } @cooldown = attributes.fetch(:cooldown) { attributes.fetch('cooldown', nil) } @hide_history = attributes.fetch(:hide_history) { attributes.fetch('hide_history', nil) } @hide_history_before = attributes.fetch(:hide_history_before) { attributes.fetch('hide_history_before', nil) } @reject_invite = attributes.fetch(:reject_invite) { attributes.fetch('reject_invite', nil) } @skip_push = attributes.fetch(:skip_push) { attributes.fetch('skip_push', nil) } @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) } @add_filter_tags = attributes.fetch(:add_filter_tags) { attributes.fetch('add_filter_tags', nil) } @add_members = attributes.fetch(:add_members) { attributes.fetch('add_members', nil) } @add_moderators = attributes.fetch(:add_moderators) { attributes.fetch('add_moderators', nil) } @assign_roles = attributes.fetch(:assign_roles) { attributes.fetch('assign_roles', nil) } @demote_moderators = attributes.fetch(:demote_moderators) { attributes.fetch('demote_moderators', nil) } @invites = attributes.fetch(:invites) { attributes.fetch('invites', nil) } @remove_filter_tags = attributes.fetch(:remove_filter_tags) { attributes.fetch('remove_filter_tags', nil) } @remove_members = attributes.fetch(:remove_members) { attributes.fetch('remove_members', nil) } @data = attributes.fetch(:data) { attributes.fetch('data', nil) } @message = attributes.fetch(:message) { attributes.fetch('message', nil) } @user = attributes.fetch(:user) { attributes.fetch('user', nil) } end |
Instance Attribute Details
#accept_invite ⇒ Boolean
Returns Set to true to accept the invite.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 14 def accept_invite @accept_invite end |
#add_filter_tags ⇒ Array<String>
Returns List of filter tags to add to the channel.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 35 def @add_filter_tags end |
#add_members ⇒ Array<ChannelMemberRequest>
Returns List of user IDs to add to the channel.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 38 def add_members @add_members end |
#add_moderators ⇒ Array<String>
Returns List of user IDs to make channel moderators.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 41 def add_moderators @add_moderators end |
#assign_roles ⇒ Array<ChannelMemberRequest>
Returns List of channel member role assignments. If any specified user is not part of the channel, the request will fail.
44 45 46 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 44 def assign_roles @assign_roles end |
#cooldown ⇒ Integer
Returns Sets cool down period for the channel in seconds.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 17 def cooldown @cooldown end |
#data ⇒ ChannelInputRequest
59 60 61 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 59 def data @data end |
#demote_moderators ⇒ Array<String>
Returns List of user IDs to take away moderators status from.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 47 def demote_moderators @demote_moderators end |
#hide_history ⇒ Boolean
Returns Set to true to hide channel's history when adding new members.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 20 def hide_history @hide_history end |
#hide_history_before ⇒ DateTime
Returns If set, hides channel's history before this time when adding new members. Takes precedence over hide_history when both are provided. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 23 def hide_history_before @hide_history_before end |
#invites ⇒ Array<ChannelMemberRequest>
Returns List of user IDs to invite to the channel.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 50 def invites @invites end |
#message ⇒ MessageRequest
Returns Message data for creating or updating a message.
62 63 64 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 62 def @message end |
#reject_invite ⇒ Boolean
Returns Set to true to reject the invite.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 26 def reject_invite @reject_invite end |
#remove_filter_tags ⇒ Array<String>
Returns List of filter tags to remove from the channel.
53 54 55 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 53 def @remove_filter_tags end |
#remove_members ⇒ Array<String>
Returns List of user IDs to remove from the channel.
56 57 58 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 56 def remove_members @remove_members end |
#skip_push ⇒ Boolean
Returns When message is set disables all push notifications for it.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 29 def skip_push @skip_push end |
#user ⇒ UserRequest
Returns User request object.
65 66 67 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 65 def user @user end |
#user_id ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 32 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/getstream_ruby/generated/models/update_channel_request.rb', line 91 def self.json_field_mappings { accept_invite: 'accept_invite', cooldown: 'cooldown', hide_history: 'hide_history', hide_history_before: 'hide_history_before', reject_invite: 'reject_invite', skip_push: 'skip_push', user_id: 'user_id', add_filter_tags: 'add_filter_tags', add_members: 'add_members', add_moderators: 'add_moderators', assign_roles: 'assign_roles', demote_moderators: 'demote_moderators', invites: 'invites', remove_filter_tags: 'remove_filter_tags', remove_members: 'remove_members', data: 'data', message: 'message', user: 'user' } end |