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 (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Category != null)
         {
             hashCode = hashCode * 59 + Category.GetHashCode();
         }
         if (ImgBase64 != null)
         {
             hashCode = hashCode * 59 + ImgBase64.GetHashCode();
         }
         if (ImgType != null)
         {
             hashCode = hashCode * 59 + ImgType.GetHashCode();
         }
         if (Hotspots != null)
         {
             hashCode = hashCode * 59 + Hotspots.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #2
0
        /// <summary>
        /// Returns true if FloorplanConfigBean instances are equal
        /// </summary>
        /// <param name="input">Instance of FloorplanConfigBean to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(FloorplanConfigBean input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Id == input.Id ||
                     (Id != null &&
                      Id.Equals(input.Id))
                     ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     Category == input.Category ||
                     (Category != null &&
                      Category.Equals(input.Category))
                 ) &&
                 (
                     ImgBase64 == input.ImgBase64 ||
                     (ImgBase64 != null &&
                      ImgBase64.Equals(input.ImgBase64))
                 ) &&
                 (
                     ImgType == input.ImgType ||
                     (ImgType != null &&
                      ImgType.Equals(input.ImgType))
                 ) &&
                 (
                     Hotspots == input.Hotspots ||
                     Hotspots != null &&
                     Hotspots.SequenceEqual(input.Hotspots)
                 ));
        }