# 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::CognitiveServices::Face::V1_0
  module Models
    #
    # Properties describing facial emotion in form of confidence ranging from 0
    # to 1.
    #
    class Emotion

      include MsRestAzure

      # @return [Float]
      attr_accessor :anger

      # @return [Float]
      attr_accessor :contempt

      # @return [Float]
      attr_accessor :disgust

      # @return [Float]
      attr_accessor :fear

      # @return [Float]
      attr_accessor :happiness

      # @return [Float]
      attr_accessor :neutral

      # @return [Float]
      attr_accessor :sadness

      # @return [Float]
      attr_accessor :surprise


      #
      # Mapper for Emotion class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Emotion',
          type: {
            name: 'Composite',
            class_name: 'Emotion',
            model_properties: {
              anger: {
                client_side_validation: true,
                required: false,
                serialized_name: 'anger',
                type: {
                  name: 'Double'
                }
              },
              contempt: {
                client_side_validation: true,
                required: false,
                serialized_name: 'contempt',
                type: {
                  name: 'Double'
                }
              },
              disgust: {
                client_side_validation: true,
                required: false,
                serialized_name: 'disgust',
                type: {
                  name: 'Double'
                }
              },
              fear: {
                client_side_validation: true,
                required: false,
                serialized_name: 'fear',
                type: {
                  name: 'Double'
                }
              },
              happiness: {
                client_side_validation: true,
                required: false,
                serialized_name: 'happiness',
                type: {
                  name: 'Double'
                }
              },
              neutral: {
                client_side_validation: true,
                required: false,
                serialized_name: 'neutral',
                type: {
                  name: 'Double'
                }
              },
              sadness: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sadness',
                type: {
                  name: 'Double'
                }
              },
              surprise: {
                client_side_validation: true,
                required: false,
                serialized_name: 'surprise',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
