Exemplo n.º 1
0
        /// <summary>
        /// Returns true if Statements instances are equal
        /// </summary>
        /// <param name="input">Instance of Statements to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Statements input)
        {
            if (input == null)
            {
                return(false);
            }

            return(base.Equals(input));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MembersBody" /> class.
 /// </summary>
 /// <param name="email">email (required).</param>
 /// <param name="firstName">firstName.</param>
 /// <param name="lastName">lastName.</param>
 /// <param name="role">role.</param>
 /// <param name="customRoles">customRoles.</param>
 /// <param name="inlineRole">inlineRole.</param>
 public MembersBody(string email = default(string), string firstName = default(string), string lastName = default(string), Role?role = default(Role?), List <CustomRoleKeyOrId> customRoles = default(List <CustomRoleKeyOrId>), Statements inlineRole = default(Statements))
 {
     // to ensure "email" is required (not null)
     if (email == null)
     {
         throw new InvalidDataException("email is a required property for MembersBody and cannot be null");
     }
     else
     {
         this.Email = email;
     }
     this.FirstName   = firstName;
     this.LastName    = lastName;
     this.Role        = role;
     this.CustomRoles = customRoles;
     this.InlineRole  = inlineRole;
 }