# 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::QnamakerRuntime::V4_0
  module Models
    #
    # Context object with previous QnA's information.
    #
    class QueryContextDTO

      include MsRestAzure

      # @return [String] Previous QnA Id - qnaId of the top result.
      attr_accessor :previous_qna_id

      # @return [String] Previous user query.
      attr_accessor :previous_user_query


      #
      # Mapper for QueryContextDTO class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'QueryContextDTO',
          type: {
            name: 'Composite',
            class_name: 'QueryContextDTO',
            model_properties: {
              previous_qna_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'previousQnaId',
                type: {
                  name: 'String'
                }
              },
              previous_user_query: {
                client_side_validation: true,
                required: false,
                serialized_name: 'previousUserQuery',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
