Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Calibration" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Calibrator">Calibrator.</param>
 /// <param name="Agent">Agent.</param>
 /// <param name="Conversation">Conversation.</param>
 /// <param name="EvaluationForm">EvaluationForm.</param>
 /// <param name="ContextId">ContextId.</param>
 /// <param name="AverageScore">AverageScore.</param>
 /// <param name="HighScore">HighScore.</param>
 /// <param name="LowScore">LowScore.</param>
 /// <param name="CreatedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Evaluations">Evaluations.</param>
 /// <param name="Evaluators">Evaluators.</param>
 /// <param name="ScoringIndex">ScoringIndex.</param>
 /// <param name="ExpertEvaluator">ExpertEvaluator.</param>
 public Calibration(string Name = null, User Calibrator = null, User Agent = null, Conversation Conversation = null, EvaluationForm EvaluationForm = null, string ContextId = null, int?AverageScore = null, int?HighScore = null, int?LowScore = null, DateTime?CreatedDate = null, List <Evaluation> Evaluations = null, List <User> Evaluators = null, Evaluation ScoringIndex = null, User ExpertEvaluator = null)
 {
     this.Name            = Name;
     this.Calibrator      = Calibrator;
     this.Agent           = Agent;
     this.Conversation    = Conversation;
     this.EvaluationForm  = EvaluationForm;
     this.ContextId       = ContextId;
     this.AverageScore    = AverageScore;
     this.HighScore       = HighScore;
     this.LowScore        = LowScore;
     this.CreatedDate     = CreatedDate;
     this.Evaluations     = Evaluations;
     this.Evaluators      = Evaluators;
     this.ScoringIndex    = ScoringIndex;
     this.ExpertEvaluator = ExpertEvaluator;
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CalibrationCreate" /> class.
        /// </summary>



        /// <param name="Name">Name.</param>



        /// <param name="Calibrator">Calibrator.</param>



        /// <param name="Agent">Agent.</param>



        /// <param name="Conversation">The conversation to use for the calibration. (required).</param>



        /// <param name="EvaluationForm">EvaluationForm.</param>



        /// <param name="ContextId">ContextId.</param>



        /// <param name="AverageScore">AverageScore.</param>



        /// <param name="HighScore">HighScore.</param>



        /// <param name="LowScore">LowScore.</param>



        /// <param name="CreatedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="Evaluations">Evaluations.</param>



        /// <param name="Evaluators">Evaluators.</param>



        /// <param name="ScoringIndex">ScoringIndex.</param>



        /// <param name="ExpertEvaluator">ExpertEvaluator.</param>



        public CalibrationCreate(string Name = null, User Calibrator = null, User Agent = null, Conversation Conversation = null, EvaluationForm EvaluationForm = null, string ContextId = null, int?AverageScore = null, int?HighScore = null, int?LowScore = null, DateTime?CreatedDate = null, List <Evaluation> Evaluations = null, List <User> Evaluators = null, Evaluation ScoringIndex = null, User ExpertEvaluator = null)
        {
            // to ensure "Conversation" is required (not null)
            if (Conversation == null)
            {
                throw new InvalidDataException("Conversation is a required property for CalibrationCreate and cannot be null");
            }
            else
            {
                this.Conversation = Conversation;
            }



            this.Name = Name;



            this.Calibrator = Calibrator;



            this.Agent = Agent;



            this.EvaluationForm = EvaluationForm;



            this.ContextId = ContextId;



            this.AverageScore = AverageScore;



            this.HighScore = HighScore;



            this.LowScore = LowScore;



            this.CreatedDate = CreatedDate;



            this.Evaluations = Evaluations;



            this.Evaluators = Evaluators;



            this.ScoringIndex = ScoringIndex;



            this.ExpertEvaluator = ExpertEvaluator;
        }