class BotFramework::ConversationParameters
Attributes
bot[RW]
The bot address for this conversation
is_group[RW]
IsGroup
members[RW]
Members to add to the conversation
topic_name[RW]
(Optional) Topic of the conversation (if supported by the channel)
Public Class Methods
new(attributes = {})
click to toggle source
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/bot_framework/models/conversation_parameters.rb, line 27 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.is_group = attributes[:isGroup] if attributes.key?(:isGroup) self.bot = attributes[:bot] if attributes.key?(:bot) if attributes.key?(:members) if (value = attributes[:members]).is_a?(Array) self.members = value end end self.topic_name = attributes[:topicName] if attributes.key?(:topicName) end
swagger_types()
click to toggle source
Attribute type mapping.
# File lib/bot_framework/models/conversation_parameters.rb, line 16 def self.swagger_types { is_group: :BOOLEAN, bot: :ChannelAccount, members: :'Array<ChannelAccount>', topic_name: :String } end