/// <summary>
 /// Initializes a new instance of the <see cref="NumberPlan" /> class.
 /// </summary>
 /// <param name="Name">The name of the entity. (required).</param>
 /// <param name="Division">The division to which this entity belongs..</param>
 /// <param name="Description">The resource's description..</param>
 /// <param name="Version">The current version of the resource..</param>
 /// <param name="DateCreated">The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="DateModified">The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="ModifiedBy">The ID of the user that last modified the resource..</param>
 /// <param name="CreatedBy">The ID of the user that created the resource..</param>
 /// <param name="ModifiedByApp">The application that last modified the resource..</param>
 /// <param name="CreatedByApp">The application that created the resource..</param>
 /// <param name="Match">Match.</param>
 /// <param name="NormalizedFormat">NormalizedFormat.</param>
 /// <param name="Priority">Priority.</param>
 /// <param name="Numbers">Numbers.</param>
 /// <param name="DigitLength">DigitLength.</param>
 /// <param name="Classification">Classification.</param>
 /// <param name="MatchType">MatchType.</param>
 public NumberPlan(string Name = null, Division Division = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, string ModifiedByApp = null, string CreatedByApp = null, string Match = null, string NormalizedFormat = null, int?Priority = null, List <Number> Numbers = null, DigitLength DigitLength = null, string Classification = null, string MatchType = null)
 {
     this.Name             = Name;
     this.Division         = Division;
     this.Description      = Description;
     this.Version          = Version;
     this.DateCreated      = DateCreated;
     this.DateModified     = DateModified;
     this.ModifiedBy       = ModifiedBy;
     this.CreatedBy        = CreatedBy;
     this.ModifiedByApp    = ModifiedByApp;
     this.CreatedByApp     = CreatedByApp;
     this.Match            = Match;
     this.NormalizedFormat = NormalizedFormat;
     this.Priority         = Priority;
     this.Numbers          = Numbers;
     this.DigitLength      = DigitLength;
     this.Classification   = Classification;
     this.MatchType        = MatchType;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NumberPlan" /> class.
        /// </summary>



        /// <param name="Name">The name of the entity. (required).</param>



        /// <param name="Description">The resource&#39;s description..</param>



        /// <param name="Version">The current version of the resource..</param>



        /// <param name="DateCreated">The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="DateModified">The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="ModifiedBy">The ID of the user that last modified the resource..</param>



        /// <param name="CreatedBy">The ID of the user that created the resource..</param>



        /// <param name="ModifiedByApp">The application that last modified the resource..</param>



        /// <param name="CreatedByApp">The application that created the resource..</param>



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



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



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



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



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



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



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



        public NumberPlan(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, string ModifiedByApp = null, string CreatedByApp = null, string Match = null, string NormalizedFormat = null, int?Priority = null, List <double?> Numbers = null, DigitLength DigitLength = null, string Classification = null, string MatchType = null)
        {
            // to ensure "Name" is required (not null)
            if (Name == null)
            {
                throw new InvalidDataException("Name is a required property for NumberPlan and cannot be null");
            }
            else
            {
                this.Name = Name;
            }



            this.Description = Description;



            this.Version = Version;



            this.DateCreated = DateCreated;



            this.DateModified = DateModified;



            this.ModifiedBy = ModifiedBy;



            this.CreatedBy = CreatedBy;



            this.ModifiedByApp = ModifiedByApp;



            this.CreatedByApp = CreatedByApp;



            this.Match = Match;



            this.NormalizedFormat = NormalizedFormat;



            this.Priority = Priority;



            this.Numbers = Numbers;



            this.DigitLength = DigitLength;



            this.Classification = Classification;



            this.MatchType = MatchType;
        }