示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueryResult" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Body">Body.</param>
 public QueryResult(string Name = null, DomainEntity Body = null)
 {
     this.Name = Name;
     this.Body = Body;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Greeting" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Type">Greeting type (required).</param>
 /// <param name="OwnerType">Greeting owner type (required).</param>
 /// <param name="Owner">Greeting owner (required).</param>
 /// <param name="AudioFile">AudioFile.</param>
 /// <param name="AudioTTS">AudioTTS.</param>
 /// <param name="CreatedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="ModifiedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 public Greeting(string Name = null, TypeEnum?Type = null, OwnerTypeEnum?OwnerType = null, DomainEntity Owner = null, GreetingAudioFile AudioFile = null, string AudioTTS = null, DateTime?CreatedDate = null, string CreatedBy = null, DateTime?ModifiedDate = null, string ModifiedBy = null)
 {
     this.Name         = Name;
     this.Type         = Type;
     this.OwnerType    = OwnerType;
     this.Owner        = Owner;
     this.AudioFile    = AudioFile;
     this.AudioTTS     = AudioTTS;
     this.CreatedDate  = CreatedDate;
     this.CreatedBy    = CreatedBy;
     this.ModifiedDate = ModifiedDate;
     this.ModifiedBy   = ModifiedBy;
 }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Greeting" /> class.
        /// </summary>



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



        /// <param name="Type">Greeting type (required).</param>



        /// <param name="OwnerType">Greeting owner type (required).</param>



        /// <param name="Owner">Greeting owner (required).</param>



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



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



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



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



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



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



        public Greeting(string Name = null, TypeEnum?Type = null, OwnerTypeEnum?OwnerType = null, DomainEntity Owner = null, GreetingAudioFile AudioFile = null, string AudioTTS = null, DateTime?CreatedDate = null, string CreatedBy = null, DateTime?ModifiedDate = null, string ModifiedBy = null)
        {
            // to ensure "Type" is required (not null)
            if (Type == null)
            {
                throw new InvalidDataException("Type is a required property for Greeting and cannot be null");
            }
            else
            {
                this.Type = Type;
            }



            // to ensure "OwnerType" is required (not null)
            if (OwnerType == null)
            {
                throw new InvalidDataException("OwnerType is a required property for Greeting and cannot be null");
            }
            else
            {
                this.OwnerType = OwnerType;
            }



            // to ensure "Owner" is required (not null)
            if (Owner == null)
            {
                throw new InvalidDataException("Owner is a required property for Greeting and cannot be null");
            }
            else
            {
                this.Owner = Owner;
            }



            this.Name = Name;



            this.AudioFile = AudioFile;



            this.AudioTTS = AudioTTS;



            this.CreatedDate = CreatedDate;



            this.CreatedBy = CreatedBy;



            this.ModifiedDate = ModifiedDate;



            this.ModifiedBy = ModifiedBy;
        }