Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AceAccessRight" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="Allowed">Allowed.</param>
 public AceAccessRight(AccessRightName Name = default(AccessRightName), bool?Allowed = default(bool?))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for AceAccessRight and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Allowed = Allowed;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AceAccessRightDefinition" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="Description">Description.</param>
 public AceAccessRightDefinition(AccessRightName Name = default(AccessRightName), string Description = default(string))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for AceAccessRightDefinition and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Description = Description;
 }