Example #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Uri != null)
         {
             hashCode = hashCode * 59 + Uri.GetHashCode();
         }
         if (ChartId != null)
         {
             hashCode = hashCode * 59 + ChartId.GetHashCode();
         }
         if (ServiceId != null)
         {
             hashCode = hashCode * 59 + ServiceId.GetHashCode();
         }
         if (ItemId != null)
         {
             hashCode = hashCode * 59 + ItemId.GetHashCode();
         }
         if (BarWidth != null)
         {
             hashCode = hashCode * 59 + BarWidth.GetHashCode();
         }
         if (BorderWidth != null)
         {
             hashCode = hashCode * 59 + BorderWidth.GetHashCode();
         }
         if (Angle != null)
         {
             hashCode = hashCode * 59 + Angle.GetHashCode();
         }
         if (Rotate != null)
         {
             hashCode = hashCode * 59 + Rotate.GetHashCode();
         }
         if (BarAngle != null)
         {
             hashCode = hashCode * 59 + BarAngle.GetHashCode();
         }
         if (LineCap != null)
         {
             hashCode = hashCode * 59 + LineCap.GetHashCode();
         }
         if (ScaleMin != null)
         {
             hashCode = hashCode * 59 + ScaleMin.GetHashCode();
         }
         if (ScaleMax != null)
         {
             hashCode = hashCode * 59 + ScaleMax.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Units != null)
         {
             hashCode = hashCode * 59 + Units.GetHashCode();
         }
         if (Group != null)
         {
             hashCode = hashCode * 59 + Group.GetHashCode();
         }
         if (FloorplanId != null)
         {
             hashCode = hashCode * 59 + FloorplanId.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #2
0
        /// <summary>
        /// Returns true if DashboardWidgetOptionsBean instances are equal
        /// </summary>
        /// <param name="input">Instance of DashboardWidgetOptionsBean to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DashboardWidgetOptionsBean input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Uri == input.Uri ||
                     (Uri != null &&
                      Uri.Equals(input.Uri))
                     ) &&
                 (
                     ChartId == input.ChartId ||
                     (ChartId != null &&
                      ChartId.Equals(input.ChartId))
                 ) &&
                 (
                     ServiceId == input.ServiceId ||
                     (ServiceId != null &&
                      ServiceId.Equals(input.ServiceId))
                 ) &&
                 (
                     ItemId == input.ItemId ||
                     (ItemId != null &&
                      ItemId.Equals(input.ItemId))
                 ) &&
                 (
                     BarWidth == input.BarWidth ||
                     (BarWidth != null &&
                      BarWidth.Equals(input.BarWidth))
                 ) &&
                 (
                     BorderWidth == input.BorderWidth ||
                     (BorderWidth != null &&
                      BorderWidth.Equals(input.BorderWidth))
                 ) &&
                 (
                     Angle == input.Angle ||
                     (Angle != null &&
                      Angle.Equals(input.Angle))
                 ) &&
                 (
                     Rotate == input.Rotate ||
                     (Rotate != null &&
                      Rotate.Equals(input.Rotate))
                 ) &&
                 (
                     BarAngle == input.BarAngle ||
                     (BarAngle != null &&
                      BarAngle.Equals(input.BarAngle))
                 ) &&
                 (
                     LineCap == input.LineCap ||
                     (LineCap != null &&
                      LineCap.Equals(input.LineCap))
                 ) &&
                 (
                     ScaleMin == input.ScaleMin ||
                     (ScaleMin != null &&
                      ScaleMin.Equals(input.ScaleMin))
                 ) &&
                 (
                     ScaleMax == input.ScaleMax ||
                     (ScaleMax != null &&
                      ScaleMax.Equals(input.ScaleMax))
                 ) &&
                 (
                     Title == input.Title ||
                     (Title != null &&
                      Title.Equals(input.Title))
                 ) &&
                 (
                     Units == input.Units ||
                     (Units != null &&
                      Units.Equals(input.Units))
                 ) &&
                 (
                     Group == input.Group ||
                     (Group != null &&
                      Group.Equals(input.Group))
                 ) &&
                 (
                     FloorplanId == input.FloorplanId ||
                     (FloorplanId != null &&
                      FloorplanId.Equals(input.FloorplanId))
                 ));
        }