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

module MobileCenterApi
  module Models
    #
    # Notification definition object
    #
    class NotificationDefinition
      # @return [NotificationTarget]
      attr_accessor :notification_target

      # @return [NotificationContent]
      attr_accessor :notification_content


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