# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::BotService::Mgmt::V2017_12_01_preview
  module Models
    #
    # Channel definition
    #
    class Channel

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["FacebookChannel"] = "FacebookChannel"
      @@discriminatorMap["EmailChannel"] = "EmailChannel"
      @@discriminatorMap["MsTeamsChannel"] = "MsTeamsChannel"
      @@discriminatorMap["SkypeChannel"] = "SkypeChannel"
      @@discriminatorMap["KikChannel"] = "KikChannel"
      @@discriminatorMap["WebChatChannel"] = "WebChatChannel"
      @@discriminatorMap["DirectLineChannel"] = "DirectLineChannel"
      @@discriminatorMap["TelegramChannel"] = "TelegramChannel"
      @@discriminatorMap["SmsChannel"] = "SmsChannel"
      @@discriminatorMap["SlackChannel"] = "SlackChannel"

      def initialize
        @channelName = "Channel"
      end

      attr_accessor :channelName


      #
      # Mapper for Channel class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Channel',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'channelName',
            uber_parent: 'Channel',
            class_name: 'Channel',
            model_properties: {
            }
          }
        }
      end
    end
  end
end
