/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Url != null) { hashCode = hashCode * 59 + Url.GetHashCode(); } if (LocationIds != null) { hashCode = hashCode * 59 + LocationIds.GetHashCode(); } if (Data != null) { hashCode = hashCode * 59 + Data.GetHashCode(); } if (Profile != null) { hashCode = hashCode * 59 + Profile.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hashCode = 455417059; if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (Cursor != null) { hashCode += Cursor.GetHashCode(); } if (Query != null) { hashCode += Query.GetHashCode(); } if (Limit != null) { hashCode += Limit.GetHashCode(); } if (ReturnEntries != null) { hashCode += ReturnEntries.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = -1765897747; if (CatalogObjectIds != null) { hashCode += CatalogObjectIds.GetHashCode(); } if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (UpdatedAfter != null) { hashCode += UpdatedAfter.GetHashCode(); } if (Cursor != null) { hashCode += Cursor.GetHashCode(); } if (States != null) { hashCode += States.GetHashCode(); } return(hashCode); }
/// <summary> /// Returns true if CostMatrix instances are equal /// </summary> /// <param name="input">Instance of CostMatrix to be compared</param> /// <returns>Boolean</returns> public bool Equals(CostMatrix input) { if (input == null) { return(false); } return (( Type == input.Type || (Type != null && Type.Equals(input.Type)) ) && ( Url == input.Url || (Url != null && Url.Equals(input.Url)) ) && ( LocationIds == input.LocationIds || LocationIds != null && LocationIds.SequenceEqual(input.LocationIds) ) && ( Data == input.Data || (Data != null && Data.Equals(input.Data)) ) && ( Profile == input.Profile || (Profile != null && Profile.Equals(input.Profile)) )); }
public override int GetHashCode() { int hashCode = -1607883077; if (Id != null) { hashCode += Id.GetHashCode(); } if (FirstName != null) { hashCode += FirstName.GetHashCode(); } if (LastName != null) { hashCode += LastName.GetHashCode(); } if (Email != null) { hashCode += Email.GetHashCode(); } if (PhoneNumber != null) { hashCode += PhoneNumber.GetHashCode(); } if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (IsOwner != null) { hashCode += IsOwner.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 2031047851; if (Id != null) { hashCode += Id.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (RewardTiers != null) { hashCode += RewardTiers.GetHashCode(); } if (ExpirationPolicy != null) { hashCode += ExpirationPolicy.GetHashCode(); } if (Terminology != null) { hashCode += Terminology.GetHashCode(); } if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } if (AccrualRules != null) { hashCode += AccrualRules.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 829641128; if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (CustomerIds != null) { hashCode += CustomerIds.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is InvoiceFilter other && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((CustomerIds == null && other.CustomerIds == null) || (CustomerIds?.Equals(other.CustomerIds) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is RetrieveInventoryCountRequest other && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true))); }
public override int GetHashCode() { int hashCode = 2068988289; if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = -618098554; if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (Cursor != null) { hashCode += Cursor.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is SearchTeamMembersFilter other && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is SearchOrdersRequest other && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true)) && ((Query == null && other.Query == null) || (Query?.Equals(other.Query) == true)) && ((Limit == null && other.Limit == null) || (Limit?.Equals(other.Limit) == true)) && ((ReturnEntries == null && other.ReturnEntries == null) || (ReturnEntries?.Equals(other.ReturnEntries) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is BatchRetrieveInventoryCountsRequest other && ((CatalogObjectIds == null && other.CatalogObjectIds == null) || (CatalogObjectIds?.Equals(other.CatalogObjectIds) == true)) && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((UpdatedAfter == null && other.UpdatedAfter == null) || (UpdatedAfter?.Equals(other.UpdatedAfter) == true)) && ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true)) && ((States == null && other.States == null) || (States?.Equals(other.States) == true))); }
public override int GetHashCode() { int hashCode = 870378021; if (CatalogObjectIds != null) { hashCode += CatalogObjectIds.GetHashCode(); } if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (Types != null) { hashCode += Types.GetHashCode(); } if (States != null) { hashCode += States.GetHashCode(); } if (UpdatedAfter != null) { hashCode += UpdatedAfter.GetHashCode(); } if (UpdatedBefore != null) { hashCode += UpdatedBefore.GetHashCode(); } if (Cursor != null) { hashCode += Cursor.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 432854802; if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (EmployeeIds != null) { hashCode += EmployeeIds.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (Start != null) { hashCode += Start.GetHashCode(); } if (End != null) { hashCode += End.GetHashCode(); } if (Workday != null) { hashCode += Workday.GetHashCode(); } if (TeamMemberIds != null) { hashCode += TeamMemberIds.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is ShiftFilter other && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((EmployeeIds == null && other.EmployeeIds == null) || (EmployeeIds?.Equals(other.EmployeeIds) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((Start == null && other.Start == null) || (Start?.Equals(other.Start) == true)) && ((End == null && other.End == null) || (End?.Equals(other.End) == true)) && ((Workday == null && other.Workday == null) || (Workday?.Equals(other.Workday) == true)) && ((TeamMemberIds == null && other.TeamMemberIds == null) || (TeamMemberIds?.Equals(other.TeamMemberIds) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is LoyaltyProgram other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((RewardTiers == null && other.RewardTiers == null) || (RewardTiers?.Equals(other.RewardTiers) == true)) && ((ExpirationPolicy == null && other.ExpirationPolicy == null) || (ExpirationPolicy?.Equals(other.ExpirationPolicy) == true)) && ((Terminology == null && other.Terminology == null) || (Terminology?.Equals(other.Terminology) == true)) && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((AccrualRules == null && other.AccrualRules == null) || (AccrualRules?.Equals(other.AccrualRules) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Employee other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((FirstName == null && other.FirstName == null) || (FirstName?.Equals(other.FirstName) == true)) && ((LastName == null && other.LastName == null) || (LastName?.Equals(other.LastName) == true)) && ((Email == null && other.Email == null) || (Email?.Equals(other.Email) == true)) && ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((IsOwner == null && other.IsOwner == null) || (IsOwner?.Equals(other.IsOwner) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true))); }
/// <summary> /// Clear location ids of ship /// </summary> public void ClearLocationIds() { LocationIds.Clear(); }
/// <summary> /// Add location id to <see cref="LocationIds"/> field /// </summary> /// <param name="locationId"></param> public void AddLocation(string locationId) { LocationIds.Add(locationId); }