/// <summary>
        /// Returns true if PhoneConnectedToWearable instances are equal
        /// </summary>
        /// <param name="other">Instance of PhoneConnectedToWearable to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PhoneConnectedToWearable other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     WearablePhysicalId == other.WearablePhysicalId ||
                     WearablePhysicalId != null &&
                     WearablePhysicalId.Equals(other.WearablePhysicalId)
                     ) &&
                 (
                     PhoneId == other.PhoneId ||
                     PhoneId != null &&
                     PhoneId.Equals(other.PhoneId)
                 ) &&
                 (
                     PhoneNumber == other.PhoneNumber ||
                     PhoneNumber != null &&
                     PhoneNumber.Equals(other.PhoneNumber)
                 ));
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (WearablePhysicalId != null)
         {
             hashCode = hashCode * 59 + WearablePhysicalId.GetHashCode();
         }
         if (PhoneId != null)
         {
             hashCode = hashCode * 59 + PhoneId.GetHashCode();
         }
         if (PhoneNumber != null)
         {
             hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
         }
         return(hashCode);
     }
 }