public override int GetHashCode() { var hash = 3; hash = (hash * 2) + EnableLdapAuthentication.GetHashCode(); hash = (hash * 2) + StartTls.GetHashCode(); hash = (hash * 2) + Server.GetHashCode(); hash = (hash * 2) + UserDN.GetHashCode(); hash = (hash * 2) + PortNumber.GetHashCode(); hash = (hash * 2) + UserFilter.GetHashCode(); hash = (hash * 2) + LoginAttribute.GetHashCode(); hash = (hash * 2) + FirstNameAttribute.GetHashCode(); hash = (hash * 2) + SecondNameAttribute.GetHashCode(); hash = (hash * 2) + MailAttribute.GetHashCode(); hash = (hash * 2) + TitleAttribute.GetHashCode(); hash = (hash * 2) + MobilePhoneAttribute.GetHashCode(); hash = (hash * 2) + LocationAttribute.GetHashCode(); hash = (hash * 2) + GroupMembership.GetHashCode(); hash = (hash * 2) + GroupDN.GetHashCode(); hash = (hash * 2) + GroupNameAttribute.GetHashCode(); hash = (hash * 2) + GroupFilter.GetHashCode(); hash = (hash * 2) + UserAttribute.GetHashCode(); hash = (hash * 2) + GroupAttribute.GetHashCode(); hash = (hash * 2) + Authentication.GetHashCode(); hash = (hash * 2) + Login.GetHashCode(); return(hash); }
public IEnumerable <Customer> GetCustomers(int locationId) { LocationAttribute locationAttribute = getAttribute(); // use translated id int translatedLocationId = locationAttribute.Translate(locationId); return(getAll(translatedLocationId)); }
/// <summary> /// Initializes a new instance of the <see cref="LocationOperand" /> class. /// </summary> /// <param name="attribute">attribute (required).</param> public LocationOperand(LocationAttribute attribute = default(LocationAttribute)) { this.Attribute = attribute; }
/// <summary> /// Initializes a new instance of the <see cref="LocationOperand" /> class. /// </summary> /// <param name="locationId">Required for User level rule, optional for Location level in request. Will always be present in response for both..</param> /// <param name="attribute">attribute (required).</param> /// <param name="trigger">trigger.</param> public LocationOperand(string locationId = default(string), LocationAttribute attribute = default(LocationAttribute), TriggerMode?trigger = default(TriggerMode?)) { this.Attribute = attribute; this.LocationId = locationId; this.Trigger = trigger; }
/// <summary> /// Initializes a new instance of the <see cref="LocationOperand" /> class. /// </summary> /// <param name="attribute">attribute (required).</param> /// <param name="value">Optional value to allow UI to reference a location attribute by id. If value is provided, the operand resolves to this value rather than calling the backend API.</param> public LocationOperand(LocationAttribute attribute = default(LocationAttribute), string value = default(string)) { this.Attribute = attribute; this.Value = value; }