lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb in twilio-ruby-5.22.3 vs lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb in twilio-ruby-5.23.0
- old
+ new
@@ -14,12 +14,14 @@
class UserContext < InstanceContext
class UserChannelList < ListResource
##
# Initialize the UserChannelList
# @param [Version] version Version that contains the resource
- # @param [String] service_sid The service_sid
- # @param [String] user_sid A 34 character string that uniquely identifies this
+ # @param [String] service_sid The SID of the
+ # [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is
+ # associated with.
+ # @param [String] user_sid The unique string that we created to identify the User
# resource.
# @return [UserChannelList] UserChannelList
def initialize(version, service_sid: nil, user_sid: nil)
super(version)
@@ -154,12 +156,14 @@
class UserChannelInstance < InstanceResource
##
# Initialize the UserChannelInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
- # @param [String] service_sid The service_sid
- # @param [String] user_sid A 34 character string that uniquely identifies this
+ # @param [String] service_sid The SID of the
+ # [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is
+ # associated with.
+ # @param [String] user_sid The unique string that we created to identify the User
# resource.
# @return [UserChannelInstance] UserChannelInstance
def initialize(version, payload, service_sid: nil, user_sid: nil)
super(version)
@@ -175,52 +179,52 @@
'links' => payload['links'],
}
end
##
- # @return [String] The account_sid
+ # @return [String] The SID of the Account that created the resource
def account_sid
@properties['account_sid']
end
##
- # @return [String] The service_sid
+ # @return [String] The SID of the Service that the resource is associated with
def service_sid
@properties['service_sid']
end
##
- # @return [String] The channel_sid
+ # @return [String] The SID of the Channel the resource belongs to
def channel_sid
@properties['channel_sid']
end
##
- # @return [String] The member_sid
+ # @return [String] The SID of the User as a Member in the Channel
def member_sid
@properties['member_sid']
end
##
- # @return [user_channel.ChannelStatus] The status
+ # @return [user_channel.ChannelStatus] The status of the User on the Channel
def status
@properties['status']
end
##
- # @return [String] The last_consumed_message_index
+ # @return [String] The index of the last Message in the Channel the Member has read
def last_consumed_message_index
@properties['last_consumed_message_index']
end
##
- # @return [String] The unread_messages_count
+ # @return [String] The number of unread Messages in the Channel for the User
def unread_messages_count
@properties['unread_messages_count']
end
##
- # @return [String] The links
+ # @return [String] Absolute URLs to access the Members, Messages , Invites and, if it exists, the last Message for the Channel
def links
@properties['links']
end
##
\ No newline at end of file