/// <summary> /// Returns true if GithubRepositorypermissions instances are equal /// </summary> /// <param name="other">Instance of GithubRepositorypermissions to be compared</param> /// <returns>Boolean</returns> public bool Equals(GithubRepositorypermissions other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Admin == other.Admin || Admin.Equals(other.Admin) ) && ( Push == other.Push || Push.Equals(other.Push) ) && ( Pull == other.Pull || Pull.Equals(other.Pull) ) && ( Class == other.Class || Class != null && Class.Equals(other.Class) )); }